[issue3783] dbm.sqlite proof of concept

2008-09-25 Thread Erno Kuusela
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: >>

[issue2076] xmlrpclib closes connection after each call

2008-02-12 Thread Erno Kuusela
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

[issue1980] pdb losing __file__

2008-01-31 Thread Erno Kuusela
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

[issue1592] operations on closed shelves fail cryptically

2007-12-12 Thread Erno Kuusela
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):

[issue1592] operations on closed shelves fail cryptically

2007-12-11 Thread Erno Kuusela
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 =