Message89372
PyErr_Print seems a too high-level function for this usage:
- it uses sys.excepthook
- it exits the process if the exception is SystemExit (!)
I'd prefer a function similar to PyErr_Display. And sys.stderr should
not be redirected to a temporary stream: this change is not thread safe.
For example, A new function PyErr_DisplayEx could take an additional
(PyObject *fp) argument.
As for the Blender use case: isn't it appropriate for Blender to change
sys.stderr globally, since the console is not used? |
|
Date |
User |
Action |
Args |
2009-06-14 22:21:56 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, ideasman42 |
2009-06-14 22:21:56 | amaury.forgeotdarc | set | messageid: <1245018116.05.0.897931165803.issue6284@psf.upfronthosting.co.za> |
2009-06-14 22:21:54 | amaury.forgeotdarc | link | issue6284 messages |
2009-06-14 22:21:54 | amaury.forgeotdarc | create | |
|