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 scoder
Recipients loewis, scoder
Date 2012-02-23.07:58:39
SpamBayes Score 2.9151512e-05
Marked as misclassified No
Message-id <1329983921.26.0.0291312337524.issue14098@psf.upfronthosting.co.za>
In-reply-to
Content
Following up on recent mailing list threads on pypy-dev and python-dev, this is a request for adding a public C-API to read and write the sys.exc_info() fields, currently stored in tstate->exc_*.

While not of major interest for CPython itself, this C-API addition would allow other Python implementations (currently PyPy) to hide their internal representation of these fields and to allow extensions that need to access them (most notably those generated by the Cython compiler) to write portable code.

Martin von Löwis proposed the names PyErr_GetExcInfo() and PyErr_SetExcInfo(), making them simple getter and setter functions that operate on owned references.

http://thread.gmane.org/gmane.comp.python.devel/129787/focus=129792

I'm currently working on a patch for CPython 3.3.
History
Date User Action Args
2012-02-23 07:58:41scodersetrecipients: + scoder, loewis
2012-02-23 07:58:41scodersetmessageid: <1329983921.26.0.0291312337524.issue14098@psf.upfronthosting.co.za>
2012-02-23 07:58:40scoderlinkissue14098 messages
2012-02-23 07:58:40scodercreate