]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Patch #1318 by Amaury Forgeot d'Arc.
authorGuido van Rossum <guido@python.org>
Wed, 24 Oct 2007 18:41:19 +0000 (18:41 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 24 Oct 2007 18:41:19 +0000 (18:41 +0000)
commit97f9d4f31224e72e5c714ea7e509c4fd0044f0e2
tree62e3de5a53ccbf0d712097671a4d152b4c1ae0be
parentb98cda44b714d41e466326f95adcbc649dde1c21
Patch #1318 by Amaury Forgeot d'Arc.
Updates to ctypes for python 3.0 to make the tests pass.
Notable changes are:
- return bytes instead of str8
- integers in range(256) are accepted as "one char string":
  libc.strchr("abcdef", 98) is now valid.
- directly use the wide-char version of the win32 function LoadLibrary.
14 files changed:
Lib/ctypes/__init__.py
Lib/ctypes/test/test_arrays.py
Lib/ctypes/test/test_buffers.py
Lib/ctypes/test/test_libc.py
Lib/ctypes/test/test_memfunctions.py
Lib/ctypes/test/test_python_api.py
Lib/ctypes/test/test_returnfuncptrs.py
Lib/ctypes/test/test_slicing.py
Lib/ctypes/test/test_strings.py
Lib/ctypes/test/test_unicode.py
Modules/_ctypes/_ctypes.c
Modules/_ctypes/callbacks.c
Modules/_ctypes/callproc.c
Modules/_ctypes/cfield.c