[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Exec and Scope
From: "Emanuele D'Arrigo" <manu3d () gmail ! com>
Date: 2008-10-31 19:10:23
Message-ID: d27a9238-6342-4465-ba43-9918b4fa15e9 () r36g2000prf ! googlegroups ! com
[Download RAW message or body]
Ahh... before you guys reply: I found the way.
Between you James sounding the horn of alarm and you Rafe pointing me
in the right direction I sorted it out. Eventually I didn't end up
using getAttr but looking into it I learned the difference between
myResult = instance.method()
and
myMethod = instance.method
the latter can be passed as an object for execution inside a function,
i.e.:
def myCommand(inputMethod):
inputMethod()
myCommand(myMethod)
and that works flawlessly! Thank you guys!
Manu
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic