Message199096
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. :) |
|
Date |
User |
Action |
Args |
2013-10-06 16:46:52 | nedbat | set | recipients:
+ nedbat, docs@python |
2013-10-06 16:46:52 | nedbat | set | messageid: <1381078012.05.0.236677780468.issue19184@psf.upfronthosting.co.za> |
2013-10-06 16:46:51 | nedbat | link | issue19184 messages |
2013-10-06 16:46:51 | nedbat | create | |
|