survey: is shelve broken? should it be fixed?

Martin v. Löwis loewis at informatik.hu-berlin.de
Tue May 7 12:31:15 EDT 2002


Oleg Broytmann <phd at phd.pp.ru> writes:

> On Tue, May 07, 2002 at 02:34:53PM +0200, Martin v. LЖwis wrote:
> > I wouldn't call the feature 'smart'
> 
>    modify-in-place?

Something like that: no-copy-mutables, or some such.

Of course, this can't work in the general case: If somebody puts a
class instance into the shelve, you cannot expect that all
modifications to the instance are reflected in the shelve.

So it might be something like

  transparent_modification=(list, dict)

Regards,
Martin




More information about the Python-list mailing list