registering objects?

Eric Brunel eric.brunel at pragmadev.com
Mon Jan 7 09:43:20 EST 2002


Lewis Bergman wrote:

[snip]
> server.register_function(name.method)

Replacing this line with:
server.register_function(getattr(name, method))
should do the stuff. Please note that dir and getattr will also get the 
attributes defined for your classes, and not only their methods...

A bit tricky for your first Python program, though :-)

HTH
 - eb -



More information about the Python-list mailing list