Python bugs

Adrian Eyre a.eyre at optichrome.com
Mon Nov 29 12:30:05 EST 1999


> >>> import shelve
> >>> s = shelve.open('foo')
> >>> s.get('bar', 'baz')
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> AttributeError: get

This one annoyed me more. Probably not fixable, but...

>>> s = shelve.open("foo")
>>> l = []
>>> s["bar"] = l
>>> s["bar"]
[]
>>> l.append("baz")
>>> s["bar"]
[]

--------------------------------------------
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