How can I get the name of an object???

spex66 at my-deja.com spex66 at my-deja.com
Wed Apr 26 11:13:41 EDT 2000


Hi again,

other trivial (looking) question:

>>> class zz: pass
>>> dd = zz()

I cannot find the hook to get back the name of 'dd' as a string.
Why? Cause I need the names for code generation :-)

like estimated
>>> dd.__name__
>>> 'dd' #DON'T WORK

any hacks available?

Peter
(=PA=)


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list