[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Fixed in r65233 -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: I'm working on this one. Alternate patch attached. The problem with the old one is that it slows down every access to the shelf and it prevents assignment to self.dict which has always been allowed. The new patch improves error reporti

[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The usual reasons, probably: nobody had time to work on it, as there are so many other things to do. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]>

[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Raymond Hettinger
Changes by Raymond Hettinger <[EMAIL PROTECTED]>: -- assignee: -> rhettinger nosy: +rhettinger versions: -Python 2.5 ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1592] operations on closed shelves fail cryptically

2008-07-25 Thread Miki Tebeka
Miki Tebeka <[EMAIL PROTECTED]> added the comment: Any reason this is not in trunk yet? -- nosy: +tebeka ___ Python tracker <[EMAIL PROTECTED]> ___

[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): File "", line 1, in ? File "shelve.py", line 107, in has_key return

[issue1592] operations on closed shelves fail cryptically

2007-12-11 Thread Christian Heimes
Christian Heimes added the comment: Can you create a patch? I suggest to use self.dict = None as marker for a closed shelf. -- nosy: +tiran priority: -> low versions: +Python 2.5, Python 2.6, Python 3.0 -Python 2.4 __ Tracker <[EMAIL PROTECTED]>

[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 = 0" in close() is present in