[Persistence-sig] "Straw Baby" Persistence API

Steve Menard smenard@bigfoot.com
Fri, 19 Jul 2002 18:28:29 -0400


At 06:12 PM 7/19/2002 -0400, Phillip J. Eby wrote:
>At 04:03 PM 7/19/02 -0400, Guido van Rossum wrote:
> >> * I do think we should keep PersistentList and PersistentMapping in the
> >> core; they're useful for almost any kind of application, and any kind of
> >> back-end storage.  They don't introduce policy or data format dependencies
> >> into users' code, either.
> >
> >But perhaps these should be rewritten to derive from dict and list
> >instead of UserDict and UserList?
>
>Perhaps.  What are the implications for pickling?

I have done exactly that for POD and it works great.



> >Also, the module names are
> >inconsistent -- PersistentMapping is defined in _persistentMapping.py
> >but PersistentList is defined in PersistentList.py.  Both are then
> >"pulled up" one level by __init__.py and their __module__ attribute
> >modified.  I find all that hideous and tricky, and I propose to clean
> >this up before making it a standard Python package.
>
>+1

I agreed too. For consistency, could we make PersistentMapping a synonym 
for PersistentDict?