On 4/30/07, Armin Rigo <[EMAIL PROTECTED]> wrote: > Hi Calvin, > > On Mon, Apr 30, 2007 at 08:34:56AM -0400, Calvin Spealman wrote: > > If you want, you can also grab the reference > > implementation from my blog: http://ironfroggy-code.blogspot.com/ > > This reference implementation is broken. It doesn't pass the following > test, for example: > > class A(object): > __metaclass__ = autosuper > def f(self): > if type(self) is B: > return "we've got a B" > else: > return "oups" > > class B(A): > def f(self): > return Super.f() > > assert B().f() == "we've got a B" > > I don't honestly think that you can easily fix the implementation to > pass this test, but I'm ready to check proposed fixes and write tests > for them. If there is really no working implementation yet then it > shouldn't have been a PEP posted on python-dev in the first place, IMHO > (and the discussion shouldn't go on on python-dev either).
You are absolutely correct, it should not have gone to python-dev. It was supposed to go to python-3000, where the initial discussion took place, where Guido asked for someone to write the PEP right off the bat. However, as much as I love GMail, it makes it less than easy to always know which mailing list I'm on, so I actually thought I was in that discussion at dev, not 3000. I apologize to everyone for mixing the threads between lists! This is exactly why I need to start pulling in all the dev lists to the summaries. -- Read my blog! I depend on your acceptance of my opinion! I am interesting! http://ironfroggy-code.blogspot.com/ _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com