[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

Steve Dower report at bugs.python.org
Fri Mar 6 17:05:40 CET 2015


Steve Dower added the comment:

New patch based on review feedback - main change is to _Py_fstat to use errno on Windows instead of GetLastError().

Where to put the invalid parameter handler is still an open question. Victor is not keen on adding a new file, while I don't really want it to be outside of the PC/ folder. msvcrtmodule.c is next best IMHO, but since this won't be getting a Python API it still seems wrong.

Alternatively, I can rename invalid_parameter_handler.c to something like "PC/crtutils.c" so it stands out as a multi-purpose file?

----------
Added file: http://bugs.python.org/file38360/23524_hack_2.patch

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


More information about the Python-bugs-list mailing list