Pablo pablo at
Sun Jul 20 23:29:12 CEST 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.


More information about the Python-list mailing list