[Python-3000] auto-super()

Guido van Rossum guido at python.org
Tue Apr 18 10:52:44 CEST 2006


On 4/18/06, Ian Bicking <ianb at colorstudy.com> wrote:
> Whatever resolves __private variables could be used to the same effect
> to bind super, couldn't it? Still a language-level change, but not one
> without precedence.

Hardly the same mechanism; __private is done by low-level name
mangling in the early stages of the compiler. super() would need a
class object to be reliable; the class *name* (which is all that's
available at compile time) might resolve to something else at runtime.
--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list

AltStyle によって変換されたページ (->オリジナル) /