Message154052
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. |
|
Date |
User |
Action |
Args |
2012-02-23 07:58:41 | scoder | set | recipients:
+ scoder, loewis |
2012-02-23 07:58:41 | scoder | set | messageid: <1329983921.26.0.0291312337524.issue14098@psf.upfronthosting.co.za> |
2012-02-23 07:58:40 | scoder | link | issue14098 messages |
2012-02-23 07:58:40 | scoder | create | |
|