ed wrote:

> 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.

You need to make the method a staticmethod or classmethod. Or pass an
ThisClass-instance as first argument.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to