Why can't I assign a class method to a variable?

ed ed at nospam.net
Wed Oct 22 12:34:26 EDT 2008


I'm trying to make a shortcut by doing this:

t = Globals.ThisClass.ThisMethod

Calling t results in an unbound method error.

Is it possible to do what I want?  I call this method in hundreds of 
locations and I'm trying to cut down on the visual clutter.

Thank you!



More information about the Python-list mailing list