cpython/Lib
Amaury Forgeot d'Arc c572dc3752 Backport for issue1265 (pdb bug with "with" statement).
When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
is called with a GeneratorExit exception set.  This leads to funny results
if the sys.settrace function itself makes use of generators.
A visible effect is that the settrace function is reset to None.
Another is that the eventual "finally" block of the generator is not called.

It is necessary to save/restore the exception around the call to the trace
function.

This happens a lot with py3k: isinstance() of an ABCMeta instance runs
    def __instancecheck__(cls, instance):
        """Override for isinstance(instance, cls)."""
        return any(cls.__subclasscheck__(c)
                   for c in {instance.__class__, type(instance)})
which lets an opened generator expression each time it returns True.

And the problem can be reproduced in 2.5 with pure python code.
2007-11-13 22:43:05 +00:00
..
bsddb * fix failing test_recno.py - backport from trunk. 2007-11-07 07:25:20 +00:00
compiler Patch #1638243: the compiler package is now able to correctly compile 2007-01-27 17:43:07 +00:00
ctypes ctypes.util.find_library uses dump(1) instead of objdump(1) on Solaris. 2007-09-14 20:05:26 +00:00
curses
distutils Change location of the package index to pypi.python.org/pypi. 2007-07-25 16:24:08 +00:00
email In response to this SF bug: 2007-07-13 21:20:38 +00:00
encodings Backport r54786: 2007-04-21 10:31:43 +00:00
hotshot
idlelib Patch 1693258: Fix for duplicate "preferences" menu-OS X 2007-07-09 06:03:47 +00:00
lib-tk Fix #1771558 (already fixed in trunk). 2007-08-10 17:29:51 +00:00
logging Bug #1321: Fixed logic error in TimedRotatingFileHandler.__init__() 2007-10-24 10:49:50 +00:00
msilib Properly generate logical file ids. Fixes #1515998. 2006-07-06 19:28:03 +00:00
plat-aix3
plat-aix4
plat-atheos
plat-beos5
plat-darwin
plat-freebsd2
plat-freebsd3
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-generic
plat-irix5
plat-irix6
plat-linux2
plat-mac * If BuildApplet.py is used as an applet it starts with a version of 2006-06-07 20:18:44 +00:00
plat-netbsd1
plat-next3
plat-os2emx
plat-riscos
plat-sunos5
plat-unixware7
site-packages
sqlite3 The sqlite3 module did cut off data from the SQLite database at the first null 2006-07-02 17:48:30 +00:00
test Backport for issue1265 (pdb bug with "with" statement). 2007-11-13 22:43:05 +00:00
wsgiref Sync w/external release 0.1.2. Please see PEP 360 before making changes to external packages. 2006-06-12 04:04:32 +00:00
xml Patch 1463026: Support default namespace in XMLGenerator. 2007-02-12 12:21:41 +00:00
BaseHTTPServer.py
Bastion.py Backport r54787 - better error messages in rexec and bastion 2007-04-21 07:23:36 +00:00
CGIHTTPServer.py Whitespace normalization 2007-04-25 06:42:41 +00:00
ConfigParser.py
Cookie.py Whitespace normalization. 2006-08-15 00:25:04 +00:00
DocXMLRPCServer.py
HTMLParser.py
MimeWriter.py
Queue.py Fix nit in comment. 2006-12-02 01:57:21 +00:00
SimpleHTTPServer.py [Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work. 2006-12-22 19:08:41 +00:00
SimpleXMLRPCServer.py
SocketServer.py Bug #1531963: Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket. Fixed by patch #1545011. 2007-03-10 03:31:44 +00:00
StringIO.py [Bug #1622533] Make docstrings raw strings because they contain control characters (\0, \1) 2007-01-05 14:24:36 +00:00
UserDict.py
UserList.py
UserString.py Cleanup: Remove import of types to get StringTypes, we can just use basestring. 2006-06-12 02:07:24 +00:00
_LWPCookieJar.py
_MozillaCookieJar.py Make use of new str.startswith/endswith semantics. 2006-06-09 20:43:48 +00:00
__future__.py
__phello__.foo.py
_strptime.py Backport of r55752: make time.strptime() behave better when whitespace is in 2007-06-04 00:14:06 +00:00
_threading_local.py
aifc.py
anydbm.py
asynchat.py
asyncore.py
atexit.py
audiodev.py
base64.py
bdb.py
binhex.py Patch #1220874: Update the binhex module for Mach-O. 2006-07-15 16:53:15 +00:00
bisect.py SF 1602378 Clarify docstrings for bisect 2007-04-03 00:01:09 +00:00
cProfile.py
calendar.py Backport r58942: 2007-11-12 10:03:39 +00:00
cgi.py Chris McDonough's patch to defend against certain DoS attacks on FieldStorage. 2006-08-10 17:41:07 +00:00
cgitb.py HTML-escape the plain traceback in cgitb's HTML output, to prevent 2007-05-15 20:19:39 +00:00
chunk.py
cmd.py
code.py
codecs.py Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and 2006-10-29 08:39:27 +00:00
codeop.py
colorsys.py
commands.py
compileall.py
contextlib.py Fix issue #1705170 (backport from trunk) 2007-11-07 12:26:40 +00:00
cookielib.py
copy.py
copy_reg.py
csv.py
dbhash.py
decimal.py Fix docstring bug 2007-02-08 01:37:18 +00:00
difflib.py SF #1637850: make_table in difflib did not work with unicode 2007-03-08 21:30:55 +00:00
dircache.py
dis.py
doctest.py Backport docos 2006-09-03 20:01:05 +00:00
dumbdbm.py
dummy_thread.py fix exception usage 2006-06-13 17:14:36 +00:00
dummy_threading.py
filecmp.py
fileinput.py
fnmatch.py
formatter.py
fpformat.py
ftplib.py Whitespace normalization 2007-04-25 06:42:41 +00:00
functools.py [Bug #1576241] Let functools.wraps work with built-in functions 2006-10-27 16:42:19 +00:00
getopt.py
getpass.py
gettext.py
glob.py Revert rev. 54198, it's not really backwards compatible. 2007-03-10 08:06:14 +00:00
gopherlib.py
gzip.py Try to squash struct.pack warnings on the "amd64 gentoo trunk" 2006-08-02 04:12:36 +00:00
hashlib.py Bug #1586773: extend hashlib docstring. 2006-10-29 18:01:12 +00:00
heapq.py Fix stability of heapq's nlargest() and nsmallest(). 2007-01-04 17:53:16 +00:00
hmac.py Backport r58868: 2007-11-06 00:32:04 +00:00
htmlentitydefs.py
htmllib.py
httplib.py Bug #978833: Revert r50844, as it broke _socketobject.dup. 2007-03-23 13:27:29 +00:00
ihooks.py
imaplib.py
imghdr.py
imputil.py Patch #685268: Consider a package's __path__ in imputil. 2007-02-13 08:35:01 +00:00
inspect.py Patch #1739696: use code.co_code only if really necessary 2007-07-12 08:11:32 +00:00
keyword.py
linecache.py Linecache contains support for PEP302 loaders, but fails to deal with loaders 2006-06-13 11:19:56 +00:00
locale.py Patch #1710352: add missing public functions to locale.__all__. 2007-05-01 06:08:20 +00:00
macpath.py
macurl2path.py
mailbox.py [Backport of r56382] 2007-07-14 22:06:30 +00:00
mailcap.py
markupbase.py Normalized a few cases of whitespace in function declarations. 2006-06-06 12:46:55 +00:00
md5.py
mhlib.py
mimetools.py
mimetypes.py Bug #1202018: add some common mime.types locations. 2006-06-14 08:42:11 +00:00
mimify.py
modulefinder.py
multifile.py
mutex.py
netrc.py
new.py
nntplib.py
ntpath.py
nturl2path.py
opcode.py
optparse.py Resync optparse with Optik 1.5.3: minor tweaks for/to tests. 2006-07-23 16:05:51 +00:00
os.py Move errno imports back to individual functions. 2006-12-11 07:56:43 +00:00
os2emxpath.py
pdb.doc
pdb.py Fixed #1254: pdb fails to launch some script. 2007-11-12 17:28:45 +00:00
pickle.py
pickletools.py
pipes.py
pkgutil.py Bug #1529871: The speed enhancement patch #921466 broke Python's compliance 2006-07-28 21:12:07 +00:00
platform.py issue1082: Fixing system and platform names for Vista. 2007-09-17 20:58:46 +00:00
popen2.py Fix check for empty list (vs. None). 2006-07-21 17:36:31 +00:00
poplib.py
posixfile.py
posixpath.py Bug #1566602: correct failure of posixpath unittest when $HOME ends 2006-09-30 09:13:29 +00:00
pprint.py pprint functions used to sort a dict (by key) if and only if 2006-06-02 23:22:51 +00:00
profile.py
pstats.py Bug #1603321: make pstats.Stats accept Unicode file paths. 2006-11-26 19:27:51 +00:00
pty.py [Patch #783050 from Patrick Lynch] The emulation of forkpty() is incorrect; 2007-01-31 07:48:49 +00:00
py_compile.py
pyclbr.py Bug #1560617: in pyclbr, return full module name not only for classes, 2006-09-30 11:06:55 +00:00
pydoc.py Patch #1194449: correctly detect unbound methods in pydoc. 2007-03-13 22:16:43 +00:00
quopri.py
random.py SF# 1635892: Fix docs for betavariate's input parameters . 2007-01-19 18:03:13 +00:00
re.py
repr.py Bug #1153: repr.repr() now doesn't require set and dictionary items 2007-09-12 19:00:10 +00:00
rexec.py Backport r54787 - better error messages in rexec and bastion 2007-04-21 07:23:36 +00:00
rfc822.py Bug #1249573: fix rfc822.parsedate not accepting a certain date format 2007-01-22 21:10:43 +00:00
rlcompleter.py
robotparser.py backport r57626 2007-08-28 23:26:55 +00:00
runpy.py Revert the __module_name__ changes made in rev 47142. We'll revisit this in Python 2.6 2006-07-06 12:53:04 +00:00
sched.py SF 1676321: empty() returned wrong result 2007-03-08 19:23:25 +00:00
sets.py
sgmllib.py As mentioned on python-dev, reverting patch #1504333 because it introduced 2006-09-11 04:05:18 +00:00
sha.py
shelve.py Bug #1339007: Shelf objects now don't raise an exception in their 2006-06-14 06:08:31 +00:00
shlex.py
shutil.py Don't copy directory stat times in shutil.copytree on Windows 2006-07-30 13:00:31 +00:00
site.py Patch #1540892: site.py Quitter() class attempts to close sys.stdin 2006-08-16 05:01:42 +00:00
smtpd.py Backport 58618: 2007-10-24 03:52:50 +00:00
smtplib.py Normalized a few cases of whitespace in function declarations. 2006-06-06 12:46:55 +00:00
sndhdr.py
socket.py Bug #978833: Revert r50844, as it broke _socketobject.dup. 2007-03-23 13:27:29 +00:00
sre.py Bug #1675967: re patterns pickled with older Python versions can 2007-03-21 20:37:39 +00:00
sre_compile.py Fix a typo in a comment 2007-08-21 04:55:11 +00:00
sre_constants.py
sre_parse.py
stat.py
statvfs.py
string.py Cookie.py shouldn't "bogusly" use string._idmap. 2006-08-14 22:01:24 +00:00
stringold.py
stringprep.py
struct.py Typo fix 2006-07-30 16:41:30 +00:00
subprocess.py Fix typo in docstring (the module is popen2, not 3). 2007-05-11 06:23:43 +00:00
sunau.py
sunaudio.py
symbol.py
symtable.py
tabnanny.py Make tabnanny recognize IndentationErrors raised by tokenize. 2006-08-14 21:34:08 +00:00
tarfile.py TarFile.__init__() no longer fails if no name argument is passed and 2007-08-28 12:33:15 +00:00
telnetlib.py Patch #825417: Fix timeout processing in expect, 2006-07-03 13:01:35 +00:00
tempfile.py Param name is dir, not directory. Update docstring. Backport candidate 2006-06-16 04:31:06 +00:00
textwrap.py Whitespace normalization. 2006-06-11 19:42:51 +00:00
this.py
threading.py Bug #1566280: Explicitly invoke threading._shutdown from Py_Main, 2007-01-04 21:06:57 +00:00
timeit.py
toaiff.py
token.py
tokenize.py Make tabnanny recognize IndentationErrors raised by tokenize. 2006-08-14 21:34:08 +00:00
trace.py backport: fix trace.py --ignore-dir 2007-02-11 18:41:56 +00:00
traceback.py Fix a bug in traceback.format_exception_only() that led to an error 2006-09-24 12:50:28 +00:00
tty.py
types.py Patch #1520294: Support for getset and member descriptors in types.py, 2006-07-27 23:43:15 +00:00
unittest.py backport rev. 54207: add a few sanity checks in unittest.TestSuite.addTest(s). 2007-03-07 11:55:25 +00:00
urllib.py Bug #767111: fix long-standing bug in urllib which caused an 2007-03-14 08:27:57 +00:00
urllib2.py Patch #1752270, #1750931: complain if urllib2 add_handler called 2007-07-12 08:05:48 +00:00
urlparse.py
user.py
uu.py Jython compatibility fix: if uu.decode() opened its output file, be sure to 2006-11-20 13:39:57 +00:00
uuid.py Bug #1541863: uuid.uuid1 failed to generate unique identifiers 2006-08-18 03:40:13 +00:00
warnings.py Ignore ImportWarning by default 2006-07-06 13:35:27 +00:00
wave.py Also commit the patch ;) 2007-03-15 07:43:22 +00:00
weakref.py
webbrowser.py Fix a few webbrowser.py problems. 2007-07-01 08:11:40 +00:00
whichdb.py
wsgiref.egg-info Sync w/external release 0.1.2. Please see PEP 360 before making changes to external packages. 2006-06-12 04:04:32 +00:00
xdrlib.py
xmllib.py
xmlrpclib.py
zipfile.py ZipFile.close(): Kill the other struct.pack deprecation 2006-07-31 02:53:03 +00:00