Determining names of instances

Daniel Klein DanielK at jBASE.com
Mon Jan 15 18:25:23 EST 2001


Never mind all, I just found the 'names' thread which answered the question
quite adequately.

Dan

"Daniel Klein" <DanielK at jBASE.com> wrote in message
news:e7L86.554$KD3.238565 at typhoon.aracnet.com...
> A question I hope has a simple answer. Take the following simple class and
> instance
>
>     class foobar:
>         pass
>
>     foo = foobar()
>
> The question is, is there a way for the object 'foo' to know that its name
> is 'foo'?
>
> Daniel Klein
>
>





More information about the Python-list mailing list