Remove the special casing of Py_None when converting the return value
authorThomas Heller <theller@ctypes.org>
Wed, 16 Aug 2006 15:10:12 +0000 (15:10 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 16 Aug 2006 15:10:12 +0000 (15:10 +0000)
commitb4a0cf17c4f665162024f354ab0d3077d5c91a99
treec5a0d66355edbea405a42e62aa5595ab423a04c1
parentf9b5b8e9f8f16a2cf829e864017496727af73949
Remove the special casing of Py_None when converting the return value
of the Python part of a callback function to C.  If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.

(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
Lib/ctypes/test/test_as_parameter.py
Lib/ctypes/test/test_functions.py
Misc/NEWS
Modules/_ctypes/callbacks.c