[Zope] Class instances changing address?

Dieter Maurer dieter at handshake.de
Sun Jan 22 16:02:17 EST 2006


Jeff Gentry wrote at 2006-1-20 17:14 -0500:
> ...
>What I saw was that 'B' would say:
><B instance at 2a9e9274e0> (or some other mem address)
>while 'C' would say:
><C instance at /gg/some/path>

Thus, "B" is not wrapped while "C" is.

>My knowledge of these things is poor but that would imply that B is not
>properly wrapped?  FWIW when I instantiate 'B' I do a _setObject() and
>then a _getOb() and use the return value from that, my understanding being
>that this is what wraps the object.

Indeed. But the "B" above did not take this route...

> ...
>> Do you use "try: ... except: ..." and swallow valuable exception
>> information?
>
>It isn't clear to me what to except on.

You should not.

   The question was just a safeguard that essential information
   were not lost due to a bad "try: ... except: ...".

-- 
Dieter


More information about the Zope mailing list