Stringify object reference?
Alan Kennedy
alanmk at hotmail.com
Fri Oct 11 13:03:00 EDT 2002
> Alan Kennedy wrote:
> >>>> o
> > <object object at 0x0078B928>
> > ^^^^^^^^^^
> >
> > But being able to get at this number depends on the __repr__ and
> > __str__ method implementations for the class in question.
>
Daniel Dittmar wrote:
> You're looking for the id () builtin.
Great, Thanks Daniel. That takes care of the object to ascii mapping.
But is there a way to get from ascii back to object?
TIA,
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/mailto/alan
More information about the Python-list
mailing list