[Zope] Unique object Ids

hans hans@beehive.de
Mon, 25 Mar 2002 11:30:23 +0000


Tom Cameron wrote:

> When I try to render an object I often get something like '<Model instance
> at 02620E00>'
>
> This suggests to me that this object has some kind of unique ID 02620E00
> that identifies this particular instance.

<xy at zz> is pythons way to str objects, which do not have a str repr.
Also, (at least for persistent objects), this will change each time some
instance attribute changes, "zz" being a location in ZODB.
-------------------------------------------------------------
Who's got only a hammer sees the world as a nail
hans augustin  (software developer)           hans@beehive.de
beehive elektronische medien GmbH       http://www.beehive.de
phone: +49 30 847-82 0                  fax: +49 30 847-82 299