[Python-3000] super(): issues [Was: Removing 'self' from method definitions]
Nick Coghlan
ncoghlan at gmail.com
Wed Apr 19 13:47:01 CEST 2006
Guido van Rossum wrote:
> On 4/19/06, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> Hmm, the reference to Dylan's next method (along with a few other comments in
>> this thread) makes me believe a magic autosuper() equivalent would really need
>> to be based on a thread-local context, rather than any kind of static code
>> analysis.
>
> No, no, no! The current thread doesn't enter into it. It *must* be
> done through static code analysis. The inputs are the class and the
> instance. There's nothing that the thread can add.
Involving the thread was a really roundabout way of getting at the class.
Using closures is far more sane, but the historic disconnect between classes
and closures meant my brain failed to make that connection :(
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list