cpython/Misc
Pauli Virtanen 07f1658aa0 bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (#31)
Ctypes currently produces wrong pep3118 type codes for several types.
E.g. memoryview(ctypes.c_long()).format gives "<l" on 64-bit platforms,
but it should be "<q" instead for sizeof(c_long) == 8

The problem is that the '<>' endian specification in the struct syntax
also turns on the "standard size" mode, which makes type characters have
a platform-independent meaning, which does not match with the codes used
internally in ctypes.  The struct module format syntax also does not
allow specifying native-size non-native-endian items.

This commit adds a converter function that maps the internal ctypes
codes to appropriate struct module standard-size codes in the pep3118
format strings. The tests are modified to check for this.
2017-08-28 14:08:49 +02:00
..
NEWS.d/next bpo-10746: Fix ctypes PEP 3118 type codes for c_long, c_bool, c_int (#31) 2017-08-28 14:08:49 +02:00
ACKS bpo-30987 - Support for ISO-TP protocol in SocketCAN (#2956) 2017-08-28 10:32:44 +02:00
HISTORY Spelling fixes (#2902) 2017-08-03 09:00:59 +03:00
NEWS bpo-31161: only check for parens error for SyntaxError (#3082) 2017-08-22 13:16:23 -07:00
Porting Issue #10708: Add a link to devguide in Misc/Porting. 2015-08-25 07:18:21 +03:00
README
README.AIX bpo-28845: Clean up known issues for AIX (GH-1670) 2017-05-24 14:27:47 -05:00
README.coverity
README.valgrind Add PYTHONMALLOC env var 2016-03-14 12:04:26 +01:00
SpecialBuilds.txt Issue #28799: Update Misc/SpecialBuilds.txt 2016-11-28 12:06:13 +01:00
coverity_model.c merge 3.5 (#28184) 2016-09-19 22:17:16 -07:00
gdbinit
indent.pro
python-config.in
python-config.sh.in - Issue #25440: Fix output of python-config --extension-suffix. 2015-10-19 14:07:57 +02:00
python-wing3.wpr
python-wing4.wpr
python-wing5.wpr
python.man Issue #28532: Show sys.version when -V option is supplied twice 2016-11-21 20:57:14 +09:00
python.pc.in
svnmap.txt
valgrind-python.supp
vgrindefs

README

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS                    Acknowledgements
gdbinit                 Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY                 News from previous releases -- oldest last
indent.pro              GNU indent profile approximating my C style
NEWS                    News for this release (for some meaning of "this")
Porting                 Mini-FAQ on porting to new platforms
python-config.in        Python script template for python-config
python.man              UNIX man page for the python interpreter
python.pc.in            Package configuration info template for pkg-config
python-wing*.wpr        Wing IDE project file
README                  The file you're reading now
README.AIX              Information about using Python on AIX
README.coverity         Information about running Coverity's Prevent on Python
README.valgrind         Information for Valgrind users, see valgrind-python.supp
SpecialBuilds.txt       Describes extra symbols you can set for debug builds
svnmap.txt              Map of old SVN revs and branches to hg changeset ids
valgrind-python.supp    Valgrind suppression file, see README.valgrind
vgrindefs               Python configuration for vgrind (a generic pretty printer)