Author nedbat
Recipients docs@python, nedbat
Date 2013-10-06.16:46:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381078012.05.0.236677780468.issue19184@psf.upfronthosting.co.za>
In-reply-to
Content
The order of values on the stack is backwards for RAISE_VARARGS.  The docs say:

"Raises an exception. argc indicates the number of parameters to the raise statement, ranging from 0 to 3. The handler will find the traceback as TOS2, the parameter as TOS1, and the exception as TOS."

But in fact, the order is reverse of that.  In the one-parameter case, the exception is TOS, in the two-parameter case, the value is TOS, and in the three-parameter case, the traceback is TOS.  Not sure how to write that concisely, thought.  :)
History
Date User Action Args
2013-10-06 16:46:52nedbatsetrecipients: + nedbat, docs@python
2013-10-06 16:46:52nedbatsetmessageid: <1381078012.05.0.236677780468.issue19184@psf.upfronthosting.co.za>
2013-10-06 16:46:51nedbatlinkissue19184 messages
2013-10-06 16:46:51nedbatcreate