]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backported 1.39 and 1.40 from trunk:
authorGuido van Rossum <guido@python.org>
Mon, 23 Sep 2002 21:19:44 +0000 (21:19 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 23 Sep 2002 21:19:44 +0000 (21:19 +0000)
commit2992e13268d5ae307755ff00778221396d09db27
tree17f4d37cbe05ade4899fe100783f6b38f8111721
parent67c87194fb030a584d087231d29b6676e24b7d5d
Backported 1.39 and 1.40 from trunk:

1.39:
Fix SF bug 610610 (reported by Martijn Pieters, diagnosed by Neal Norwitz).

The switch in Exception__str__ didn't clear the error if
PySequence_Size() raised an exception.  Added a case -1 which clears
the error and falls through to the default case.

1.40:
Two more cases of switch(PySequence_Size()) without checking for case -1.
(Same problem as last checkin for SF bug 610610)
Need to clear the error and proceed.
Python/exceptions.c