Re: Object Persistence Using a File System

2006-07-18 Thread Bruno Desthuilliers
Nick Vatamaniuc a écrit : (please don't top-post - corrected) Bruno Desthuilliers wrote: (snip) A few observations and questions : - you should avoid tests on concrete types as much as possible - at least use isinstance Good point about isinstance. Here is a good explanation why:

Re: Object Persistence Using a File System

2006-07-18 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Chris Spencer wrote: I've been looking for a method of transparent, scalable, and human-readable object persistence... Don't do object persistence. What is an object? It's a combination of code and data. Code structure is internal to your program--it has no

Re: Object Persistence Using a File System

2006-07-12 Thread Bruno Desthuilliers
Chris Spencer wrote: Before I get too carried away with something that's probably unnecessary, please allow me to throw around some ideas. I've been looking for a method of transparent, scalable, and human-readable object persistence, and I've tried the standard lib's Shelve, Zope's ZODB,

Re: Object Persistence Using a File System

2006-07-12 Thread Nick Vatamaniuc
Chris, Interesting concept. But why is there a need for a human readable object persistence that is x10 slower than pickle? In other words present a good use case with a rationale (i.e. your criteria that you mentioned). The only one I can think of so far is debugging. Also some objects are

Re: Object Persistence Using a File System

2006-07-12 Thread Nick Vatamaniuc
Good point about isinstance. Here is a good explanation why: http://www.canonical.org/~kragen/isinstance/ Also the frozenset should be added the list of immutable types. Nick Vatamaniuc Bruno Desthuilliers wrote: Chris Spencer wrote: Before I get too carried away with something that's

Object Persistence Using a File System

2006-07-11 Thread Chris Spencer
Before I get too carried away with something that's probably unnecessary, please allow me to throw around some ideas. I've been looking for a method of transparent, scalable, and human-readable object persistence, and I've tried the standard lib's Shelve, Zope's ZODB, Divmod's Axiom, and