]> granicus.if.org Git - python/commit
ctypes callback functions only support 'fundamental' result types.
authorThomas Heller <theller@ctypes.org>
Tue, 17 Oct 2006 19:41:10 +0000 (19:41 +0000)
committerThomas Heller <theller@ctypes.org>
Tue, 17 Oct 2006 19:41:10 +0000 (19:41 +0000)
commitdcbf64d34ddef32cb49ebbd19958ddd426cbdab6
tree15f55f06acccbf966b1a11f362936629ce7ef295
parentca362b6937aecf5177d832b3e44aa6697e6d5d9e
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called.  This is a partial fix for #1574584.

Backported from trunk.
Lib/ctypes/test/test_callbacks.py
Misc/NEWS
Modules/_ctypes/callbacks.c