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 eli.bendersky
Recipients eli.bendersky, georg.brandl, robert.kern, terry.reedy
Date 2010-08-04.03:36:13
SpamBayes Score 5.673483e-07
Marked as misclassified No
Message-id <1280892975.93.0.108071529464.issue6798@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-08-04 03:36:16eli.benderskysetrecipients: + eli.bendersky, georg.brandl, terry.reedy, robert.kern
2010-08-04 03:36:15eli.benderskysetmessageid: <1280892975.93.0.108071529464.issue6798@psf.upfronthosting.co.za>
2010-08-04 03:36:14eli.benderskylinkissue6798 messages
2010-08-04 03:36:13eli.benderskycreate