classes

Pablo pablo at bogus.domain.org
Sun Jul 20 17:29:12 EDT 2003


> Sure it does.  Allowing that is the purpose of the "staticmethod"
> call in Dan's example.

Yes You're right and Dan as well.
I just didn't know that that 'staticmethod' existed and tried to do "Java
style" static method which obviously didn't work

The trick with __new__ is usefull. I must read some more about classes in
Python. Thanks to Pedro for a link.

Cheers
Pablo




More information about the Python-list mailing list