getattr does not work on a running script (afaik) because 'self' is undefined. The poster above got it right using 'locals()'
-- http://mail.python.org/mailman/listinfo/python-list
getattr does not work on a running script (afaik) because 'self' is undefined. The poster above got it right using 'locals()'
-- http://mail.python.org/mailman/listinfo/python-list