[ZODB-Dev] ZODB.tests.testZODB.checkResetCachesAPI definitely bad

2006-09-12 Thread Stefan H. Holek
These errors are *also* due to ZODB.tests.testZODB.checkResetCachesAPI. The cache reset appears to leave the Application object and/or transactions in a borked state. All is well when I suppress checkResetCachesAPI: $ python2.4 test.py -q -m '!^(ZEO|zope[.]app[.])' -t '!

[ZODB-Dev] Newbie questions re persistent objects and connections: [Was: can Leo...]

2006-09-12 Thread Edward K. Ream
This is a repost of my original: Can Leo use zodb as a file system. Both the title of the thread and the botched formatting may have put people off, so let's try again :-) All you really need to know about Leo is an editor that represents programs as outlines. For full details, see:

Re: [ZODB-Dev] Newbie questions re persistent objects and connections: [Was: can Leo...]

2006-09-12 Thread Benji York
Edward K. Ream wrote: This is a repost of my original: Can Leo use zodb as a file system. Yes (s/file system/persistent store/). Start here: http://www.zope.org/Wikis/ZODB/guide/zodb.html This might also be helpful, although potentially slightly out of date:

Re: [ZODB-Dev] Newbie questions re persistent objects and connections: [Was: can Leo...]

2006-09-12 Thread Gary Poster
On Sep 12, 2006, at 8:24 AM, Edward K. Ream wrote: This is a repost of my original: Can Leo use zodb as a file system. Both the title of the thread and the botched formatting may have put people off, so let's try again :-) I know Leo. :-) It's cool. Benji's email is the right reply.

[ZODB-Dev] re: re: Newbie questions re persistent objects and connections: [Was: can Leo...]

2006-09-12 Thread Edward K. Ream
Another approach would be to have in-memory copies of the objects in the zodb (they could even be the same class, just without a database connection). Saving the file pushes the copy's data to the ZODB and commits a transaction. This would work with a single long running connection or with

[ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread Chris S
I'm having a problem storing infinity. The following code reproduces the problem on w2k: from ZODB import FileStorage, DB from persistent import Persistent from persistent.mapping import PersistentMapping as dict import transaction storage = FileStorage.FileStorage('zodb.db') db = DB(storage)

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread David Binger
That's interesting. It appears that pickle protocol 2 chokes on inf. - from cPickle import dumps - dumps(1e9) 'Finf\n.' - dumps(1e9, 2) Traceback (most recent call last): File input, line 2, in ? SystemError: frexp() result out of range -

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread Jim Fulton
On Sep 12, 2006, at 11:55 AM, David Binger wrote: That's interesting. It appears that pickle protocol 2 chokes on inf. - from cPickle import dumps - dumps(1e9) 'Finf\n.' - dumps(1e9, 2) Traceback (most recent call last): File input, line 2, in ? SystemError: frexp()

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread Tim Peters
[Chris S] I'm having a problem storing infinity. The following code reproduces the problem on w2k: Purely a Python issue. Nothing about the behavior of infinities, NaNs or signed zeroes is defined in Python before (the not yet released) 2.5. In 2.5, marshal and pickle (but only with protocol

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread David Binger
On Sep 12, 2006, at 2:11 PM, Tim Peters wrote: [David Binger] That's interesting. It appears that pickle protocol 2 chokes on inf. As above. BTW, why protocol 2 specifically? Protocols 1 and 2 treat floats the same way. I was thinking that the default protocol is 1, but I see now that

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread Tim Peters
[David Binger] That's interesting. It appears that pickle protocol 2 chokes on inf. [Tim Peters] As above. BTW, why protocol 2 specifically? Protocols 1 and 2 treat floats the same way. [David] I was thinking that the default protocol is 1, but I see now that the default is 0. Strange,

Re: [ZODB-Dev] Problem Storing Infinity

2006-09-12 Thread Jim Fulton
On Sep 12, 2006, at 3:07 PM, Tim Peters wrote: [David Binger] That's interesting. It appears that pickle protocol 2 chokes on inf. [Tim Peters] As above. BTW, why protocol 2 specifically? Protocols 1 and 2 treat floats the same way. [David] I was thinking that the default protocol

[ZODB-Dev] Re: Problem Storing Infinity

2006-09-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Fulton wrote: On Sep 12, 2006, at 3:07 PM, Tim Peters wrote: [David Binger] That's interesting. It appears that pickle protocol 2 chokes on inf. [Tim Peters] As above. BTW, why protocol 2 specifically? Protocols 1 and 2 treat floats