Unification of Methods and Functions
David MacQuigg
dmq at gain.com
Mon May 3 14:44:06 EDT 2004
On Mon, 03 May 2004 13:11:17 +1200, Greg Ewing
<greg at cosc.canterbury.ac.nz> wrote:
>David MacQuigg wrote:
>> The concept of using a
>> global variable __self__ is no surprise at all.
>
>Except that __self__ can't be a global variable.
>Implementing it that way would be a disaster.
It seems to work in Michele Simionato's 'prototype' module.
{ comp.lang.python, 4/28/04, "Prototypes in Python"} It is global
only to the called function, but the key requirement is met -- no
alteration of the standard function calling sequence.
Why can't it be a true global?
-- Dave
More information about the Python-list
mailing list