Getting current variable name
Lonnie Princehouse
finite.automaton at gmail.com
Thu Mar 17 13:14:21 EST 2005
> There should be an easier way that doesn't require stepping though
the name list.
Trying to find names bound to a particular object is a /very/ strange
thing to want to do in Python. If this is for anything more than
debugging diagnostics, it's probably better to use a dictionary
explicitly for your variables and not muck around with global or local
namespace.
More information about the Python-list
mailing list