Python bugs

Bjorn Pettersen bjorn at roguewave.com
Mon Nov 29 18:00:59 CET 1999


Just found two bugs:

	- os.environ and shelve does not conform to the 
	  Mapping Type interface (2.1.6)

(and in case you were wondering, I'm not interested in workarounds, but
rather not having to special case my code <wink>)

--bjorn

Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import os
>>> {}.update(os.environ)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: dictionary, instance
>>> import shelve
>>> s = shelve.open('foo')
>>> s.get('bar', 'baz')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
AttributeError: get
>>>






More information about the Python-list mailing list