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

James Mills prologic at shortcircuit.net.au
Sun Oct 26 08:08:00 EDT 2008


On Thu, Oct 23, 2008 at 2:34 AM, ed <ed at nospam.net> 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.

I can't help but think there is a better approach to
your problem. Why are you calling in hundreds of places ?
What is it and what does it do ?

cheers
James

-- 
--
-- "Problems are solved by method"



More information about the Python-list mailing list