static methods

Rick Lee rwklee at home.com
Sun Mar 25 22:08:43 EST 2001


Alex Martelli wrote:

>
> The desire to use the class-object specifically, rather than any
> other, typically seems to have more to do with familiarity with
> other languages where classes must play certain special roles
> (C++, Java, Smalltalk, Eiffel) than with any actual programming
> needs.
>
> Alex

I beg to differ.  If you pass to the caller a class reference, you can change
it to a subclass and it is all transparent to the caller.  I don't think you
have that kind of flexibility with a module reference.




More information about the Python-list mailing list