[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

Stefan Behnel report at bugs.python.org
Mon Apr 9 17:40:22 CEST 2012


Stefan Behnel <scoder at users.sourceforge.net> added the comment:

FWIW, Cython keeps the exception state in the generator struct and that works nicely.

Note that Amaury is right in that extensions use tstate->exc_value and friends. Cython does so quite extensively, for example. I don't see any use in changing the plain fields into a struct, but it will definitely break code, and not just some. This is also unrelated to the topic of this issue, so it should be a separate issue in the first place, and that should then be rejected IMHO.

Also note that there is a separate issue 14098 (with patch) on providing a public C-API for these three fields - as long as there is none but direct access to these public fields, a change that basically removes them should not even be seriously considered.

----------
nosy: +scoder

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13897>
_______________________________________


More information about the Python-bugs-list mailing list