How can I get the name of an object???
spex66 at my-deja.com
spex66 at my-deja.com
Thu Apr 27 05:12:07 EDT 2000
More information about the Python-list mailing list
Thu Apr 27 05:12:07 EDT 2000
- Previous message (by thread): How can I get the name of an object???
- Next message (by thread): How can I get the name of an object???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <etd8zy03m44.fsf at w20-575-108.mit.edu>, Alex <cut_me_out at hotmail.com> wrote: > > An object could be referred to by any number of names: > > dd = zz () > ee = dd > > Which name for the object do you wish to know? ee or dd? dd or in other words, the name of the FIRST made instance... I tried to expand the zz.__init__(self) to save the name of the generated instance, but I think that the name must given as an extra parameter to __init__(self, instanceName) I hoped that there is a way to get it from the context :-| thanks for all the other answers in the thread! Peter (=PA=) > Alex. > Sent via Deja.com http://www.deja.com/ Before you buy.
- Previous message (by thread): How can I get the name of an object???
- Next message (by thread): How can I get the name of an object???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list