problems with the types module

Erik Max Francis max at alcyone.com
Wed Dec 11 16:05:53 EST 2002


Michele Simionato wrote:

> i.e. the same object is seen as a function inside the class scope and
> as an
> instance method outside the class scope. To me, this fact was quite
> surprising,
> I don't like to have a changing type depending on the context. Maybe a
> unique
> 'function' type for both functions and methods would have been a
> simpler
> solution.

But they're not the same.  Remember that first "self" argument;
functions and methods are handled differently, so a distinction needs to
be made.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Substance is one of the greatest of our illusions.
\__/ Sir Arthur Eddington
    The laws list / http://www.alcyone.com/max/physics/laws/
 Laws, rules, principles, effects, paradoxes, etc. in physics.



More information about the Python-list mailing list