Create static method dynamically

Salvatore salvatore at nolog.org
Fri Mar 12 22:16:13 CET 2004


Leif K-Brooks wrote:
  >
> Change line 3 to:
>         myClass.__dict__[name] = staticmethod(method)

That make me feel not very proud ;-)
Thans Leif




More information about the Python-list mailing list