Stupid q: Where is the destructor?
Cees de Groot
cg at gaia.cdg.acriter.nl
Thu Aug 24 13:33:18 EDT 2000
Kjell Kolsaker <kjell.kolsaker at kkt.ntnu.no> said:
>Another question: Static methods?
>
>>>> class foo:
>... i=12
>... def getI():
>... return foo.i
>...
Static methods are there to be able to call them without an instance. In
effect, they're a bit outside the class. Therefore, you usually make
a stand-alone method. If you want polymorphism, bite the bullet and
add that self argument...
--
Cees de Groot http://www.cdegroot.com <cg at cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B
Forge your CipherSaber and list it: http://www.xs4all.nl/~cg/ciphersaber/
More information about the Python-list
mailing list