This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients ncoghlan, pitrou, python-dev, scoder
Date 2015-05-25.18:08:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I noticed that my patch isn't entirely correct. If the exception value is a tuple, both PyErr_SetObject() and PyErr_NormalizeException() use it directly as *argument tuple* for the exception instantiation call, i.e. they essentially unpack it into separate arguments. The StopIteration value is then only the first item of that tuple.

I wonder if it's worth repeating this, uhm, surprising special case in yet another place, or if we should just always instantiate the exception.
Date User Action Args
2015-05-25 18:08:54scodersetrecipients: + scoder, ncoghlan, pitrou, python-dev
2015-05-25 18:08:54scodersetmessageid: <>
2015-05-25 18:08:54scoderlinkissue23996 messages
2015-05-25 18:08:54scodercreate