[Python-checkins] r47206 - in python/trunk: Lib/ctypes/test/test_win32.py Modules/_ctypes/callproc.c

Neal Norwitz nnorwitz at gmail.com
Thu Jul 6 09:36:10 CEST 2006


On 7/6/06, Thomas Heller <theller at python.net> wrote:
> Neal Norwitz schrieb:
> > On 7/3/06, thomas.heller <python-checkins at python.org> wrote:
> >> Author: thomas.heller
> >> Date: Mon Jul  3 10:08:14 2006
> >> New Revision: 47206
> >>
> >> Modified:
> >>    python/trunk/Lib/ctypes/test/test_win32.py
> >>    python/trunk/Modules/_ctypes/callproc.c
> >> Log:
> >> Add a new function uses_seh() to the _ctypes extension module.  This
> >> will return True if Windows Structured Exception handling (SEH) is
> >> used when calling functions, False otherwise.
> >>
> >> Currently, only MSVC supports SEH.
> >>
> >> Fix the test so that it doesn't crash when run with MingW compiled
> >> _ctypes.  Note that two tests are still failing when mingw is used, I
> >> suspect structure layout differences and function calling conventions
> >> between MSVC and MingW.
> >
> > This seems like a really minor/limited feature.  Can't this wait for
> > 2.6?  I would prefer this change was reverted.
>
> This feature only provides a way to have access from Python to the value of
> the #define DONT_USE_SEH symbol used when compiling, which gets set depending
> on whether mingw or msvc is used.  I can revert the patch, but then I would
> like to change Lib/test/test_win32.py so that the test_SEH testcase is skipped
> by default:

That's fine with me.  Thanks.

n


More information about the Python-checkins mailing list