Staging
v0.8.1
Revision 2070be82cd91847b415c646b16393d8b1dfddabc authored by R. David Murray on 10 February 2010, 22:47:57 UTC, committed by R. David Murray on 10 February 2010, 22:47:57 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78137 | r.david.murray | 2010-02-10 17:42:04 -0500 (Wed, 10 Feb 2010) | 8 lines

  Issue 7835:  Shelve's __del__ method calls its close method, and its
  close method refers to an identifier in the global module namespace.
  This means that when __del__ is called during interpreter shutdown (if,
  for example, the calling program still has a pointer to the shelf),
  sometimes that global identifier would wind up being None, causing
  mysterious 'ignored' exceptions.  This patch checks for the possible None
  value first before using the global, thus avoiding the error messages.
........
1 parent 8ed66ed
History
File Mode Size
stringlib
abstract.c -rw-r--r-- 68.1 KB
boolobject.c -rw-r--r-- 4.7 KB
bufferobject.c -rw-r--r-- 18.9 KB
bytearrayobject.c -rw-r--r-- 96.4 KB
bytes_methods.c -rw-r--r-- 15.7 KB
cellobject.c -rw-r--r-- 2.9 KB
classobject.c -rw-r--r-- 63.4 KB
cobject.c -rw-r--r-- 3.8 KB
codeobject.c -rw-r--r-- 18.3 KB
complexobject.c -rw-r--r-- 28.8 KB
descrobject.c -rw-r--r-- 33.7 KB
dictnotes.txt -rw-r--r-- 11.9 KB
dictobject.c -rw-r--r-- 66.4 KB
enumobject.c -rw-r--r-- 10.0 KB
exceptions.c -rw-r--r-- 60.1 KB
fileobject.c -rw-r--r-- 67.8 KB
floatobject.c -rw-r--r-- 59.0 KB
frameobject.c -rw-r--r-- 26.1 KB
funcobject.c -rw-r--r-- 21.2 KB
genobject.c -rw-r--r-- 10.1 KB
intobject.c -rw-r--r-- 33.7 KB
iterobject.c -rw-r--r-- 5.2 KB
listobject.c -rw-r--r-- 71.6 KB
listsort.txt -rw-r--r-- 31.0 KB
longobject.c -rw-r--r-- 89.5 KB
methodobject.c -rw-r--r-- 9.4 KB
moduleobject.c -rw-r--r-- 6.3 KB
object.c -rw-r--r-- 56.7 KB
obmalloc.c -rw-r--r-- 57.4 KB
rangeobject.c -rw-r--r-- 8.9 KB
setobject.c -rw-r--r-- 58.0 KB
sliceobject.c -rw-r--r-- 8.3 KB
stringobject.c -rw-r--r-- 127.0 KB
structseq.c -rw-r--r-- 12.5 KB
tupleobject.c -rw-r--r-- 22.7 KB
typeobject.c -rw-r--r-- 173.1 KB
unicodectype.c -rw-r--r-- 15.9 KB
unicodeobject.c -rw-r--r-- 268.1 KB
unicodetype_db.h -rw-r--r-- 98.8 KB
weakrefobject.c -rw-r--r-- 29.7 KB

back to top