[ZODB-Dev] Persistent classes

Jeremy Hylton jeremy at zope.com
Mon May 5 18:18:53 EDT 2003


On Mon, 2003-05-05 at 11:39, Paolo Invernizzi wrote:
> Hi all,
> 
> I've this problem...
> D:\temp>python_d genesi2.py
> module app   : <PersistentModule app>
> class app.App: <type 'persistence.Persistent'>
> instance theApp: <persistence.Persistent object at 0x00B1C678>
> 
> Unhandled Exception. Persistence.c line 140
> Basically the
> PyObject **pdict = _PyObject_GetDictPtr(self);
> at 128 returns a NULL...
> 
> I'm sure I've done something very silly....
> 
> How to persist an instance of a persistent-class?

I've fixed the core dump, but that's not really the problem.  It nows
raises an exception somewhere else.

I don't understand why the "class app.App" line says "<type
'persistence.Persistent'>".  I would expect it to say "<class
'app.App'>".  It looks like I don't have a test for that in zodb.code,
so I'll need to look further.  I'd guess that the patch code is making a
mistake.

Jeremy





More information about the ZODB-Dev mailing list