Python bugs

Adrian Eyre a.eyre at optichrome.com
Tue Nov 30 10:31:38 CET 1999


>     >>> s = shelve.open("foo")
>     >>> l = []
>     >>> s["bar"] = l
>     >>> s["bar"]
>     []
>     >>> l.append("baz")
>     >>> s["bar"]
>     []
> 
> I think you're asking for magic that really can't happen (at least not
> easily).

I understand the problems involved. The odd thing is, because of the way a
shelve is presented to the user (as a dictionary), I just assumed it would
work. Perhaps making it look like a dictionary is a Bad Thing (tm). Okay,
so it is possible to fix, but it would no doubt be highly ineffiecient.
Unless someone else can think of an elegant solution for this one.

--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644
http://www.optichrome.com 
--------------------------------------------





More information about the Python-list mailing list