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 <1432577334.53.0.263618655259.issue23996@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-05-25 18:08:54scodersetrecipients: + scoder, ncoghlan, pitrou, python-dev
2015-05-25 18:08:54scodersetmessageid: <1432577334.53.0.263618655259.issue23996@psf.upfronthosting.co.za>
2015-05-25 18:08:54scoderlinkissue23996 messages
2015-05-25 18:08:54scodercreate