Python methods and C++ static methods

Alex Martelli aleaxit at yahoo.com
Fri Apr 27 09:45:47 EDT 2001


"Yann Cointepas" <yann.cointepas at chups.jussieu.fr> wrote in message
news:9cbprq$mnc$1 at vishnu.jussieu.fr...
> Can Python unbound methods easily be used like C++ static methods ?
    ...
> Is there a better solution ?

I think recipe ""Static-methods" (aka "class-methods") in Python",
on the Python Cookbook, see:
http://www.activestate.com/ASPN/Python/Cookbook/Recipe/52304,
is a bit better, and may at least be worth checking out.


Alex






More information about the Python-list mailing list