You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The super() PEP currently is completely wrong w.r.t. reality. The
implementation is solid and won't change. The PEP just needs to be
rewritten to match reality.
The possible new PEP-3135, however I'm not that familiar with the
implementation of the new super, thus please review whether it is "right
w.r.t. reality". I'm writing only from whatever I can determine from
observing the behavior of super in python 3.0.1
Probably not related, but while playing with super, I noticed several
things, I'm not sure about whether this is bug or design decision:
super() in normal function is SystemError, instead of SyntaxError or a
more descriptive error
btw, is "__class__" related to "__this_class__" alt implementation? I
assume yes, so I removed the alt implementation for __this_class__
Thanks for contributing. However since you reformatted the whole file
it's kind of hard to see what you changed, which makes review laborious.
Could you try to upload a unified diff relative to the PEP source code
in Subversion?
Submitted as revision 70312, with some additional changes. I suppose it
could use some more work (e.g. adding the penultimate proposal to the
History section) but I'll leave that to others. (Lie, if you feel like
writing that history section, just add it to this bug.)
Activity
gvanrossum commentedon Mar 16, 2008
The super() PEP currently is completely wrong w.r.t. reality. The
implementation is solid and won't change. The PEP just needs to be
rewritten to match reality.
lieryan commentedon Mar 11, 2009
The possible new PEP-3135, however I'm not that familiar with the
implementation of the new super, thus please review whether it is "right
w.r.t. reality". I'm writing only from whatever I can determine from
observing the behavior of super in python 3.0.1
Probably not related, but while playing with super, I noticed several
things, I'm not sure about whether this is bug or design decision:
more descriptive error
btw, is "__class__" related to "__this_class__" alt implementation? I
assume yes, so I removed the alt implementation for __this_class__
gvanrossum commentedon Mar 11, 2009
Thanks for contributing. However since you reformatted the whole file
it's kind of hard to see what you changed, which makes review laborious.
Could you try to upload a unified diff relative to the PEP source code
in Subversion?
lieryan commentedon Mar 11, 2009
Here is the unified diff.
gvanrossum commentedon Mar 11, 2009
Thanks! Reviewing now...
gvanrossum commentedon Mar 11, 2009
Submitted as revision 70312, with some additional changes. I suppose it
could use some more work (e.g. adding the penultimate proposal to the
History section) but I'll leave that to others. (Lie, if you feel like
writing that history section, just add it to this bug.)