[Python-Dev] New Super PEP
arigo at tunes.org
Mon Apr 30 15:14:27 CEST 2007
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:
__metaclass__ = autosuper
if type(self) is B:
return "we've got a B"
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).
More information about the Python-Dev