Erno Kuusela <[EMAIL PROTECTED]> added the comment:
I'm looking for a bsddb-shelve replacement (because of we bsddb
corruption problems), and decided to give this a try. Don't overlook
the free locking you get from sqlite when evaluating this for inclusion!
A small bug:
>>
New submission from Erno Kuusela:
xmlrpclib is using the old HTTP and HTTPS classes from httplib which are
to quote the docstring, "Compatibility classes with httplib.py from 1.5."
and force the use of HTTP 1.0. This prevents connection reuse and
pipelining.
Attacked is some code we
New submission from Erno Kuusela:
under pdb, __file__ is not defined when executing a source code file
directly.
for example, if myprogram.py contains "print __file__", a NameError will
be raised when run with python -m pdb myprogram.py.
--
components: Library (Lib)
messa
Erno Kuusela added the comment:
How about the following patch. With it, you get an IOError.
>>> s = shelve.open('/tmp/t', 'c')
>>> s.has_key('foo')
0
>>> s.close()
>>> s.has_key('foo')
Traceback (most recent call last):
New submission from Erno Kuusela:
shelve objects set self.dict = 0 in their close() method. this
results in errors such as TypeError: unsubscriptable object and
AttributeError: 'int' object has no attribute 'has_key'.
This is fairly baffling for the user.
"self.dict =