is there an equivalent of javascript's this["myMethod"] for the currently running script?
markturansky at gmail.com
markturansky at gmail.com
Thu Jul 7 00:03:05 EDT 2005
getattr does not work on a running script (afaik) because 'self' is
undefined. The poster above got it right using 'locals()'
More information about the Python-list
mailing list