Message112745
I can confirm Robert's findings.
1) The documentation of C_RETURN and C_EXCEPTION indeed says None while the function object is passed. This is seen in the implementation of the C_TRACE macro in Python/ceval.c
2) The arg of RETURN can be indeed NULL when caused by an exception. This is seen in the PyEval_EvalFrameEx function of Python/ceval.c right after the 'fast_yield' label.
3) The C/API documentation of Py_tracefunc shares the same errors with sys.settrace
As Georg said, the docs should be fixed to reflect the correct behavior. |
|
Date |
User |
Action |
Args |
2010-08-04 03:36:16 | eli.bendersky | set | recipients:
+ eli.bendersky, georg.brandl, terry.reedy, robert.kern |
2010-08-04 03:36:15 | eli.bendersky | set | messageid: <1280892975.93.0.108071529464.issue6798@psf.upfronthosting.co.za> |
2010-08-04 03:36:14 | eli.bendersky | link | issue6798 messages |
2010-08-04 03:36:13 | eli.bendersky | create | |
|