Message58490
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 "<stdin>", line 1, in ?
File "shelve.py", line 107, in has_key
return self.dict.has_key(key)
File "shelve.py", line 94, in getdict
raise IOError, 'shelf has been closed'
IOError: shelf has been closed |
| File name |
Uploaded |
|
shelve.diff
|
erno,
2007-12-12.10:47:45
|
|
| Date |
User |
Action |
Args |
| 2007-12-12 10:47:47 | erno | set | spambayes_score: 0.181724 -> 0.181724 recipients:
+ erno, christian.heimes |
| 2007-12-12 10:47:47 | erno | set | spambayes_score: 0.181724 -> 0.181724 messageid: <1197456467.22.0.894187029688.issue1592@psf.upfronthosting.co.za> |
| 2007-12-12 10:47:47 | erno | link | issue1592 messages |
| 2007-12-12 10:47:46 | erno | create | |
|