Stringify object reference?

Daniel Dittmar daniel.dittmar at sap.com
Fri Oct 11 12:46:49 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.

You're looking for the id () builtin.

Daniel






More information about the Python-list mailing list