Create static method dynamically

Salvatore salvatore at nolog.org
Fri Mar 12 16:16:13 EST 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