diff options
author | Gareth Rees <gdr@garethrees.org> | 2017-07-21 10:35:33 (GMT) |
---|---|---|
committer | Antoine Pitrou <pitrou@free.fr> | 2017-07-21 10:35:33 (GMT) |
commit | 3913bad4957ac30e58a7ffe9279333ad176a8eea (patch) | |
tree | 2c6e360c1bf3571401f33232e85609e2316c44d4 /Lib/multiprocessing | |
parent | 7c5798ebfa9b822d6cedf1fc8c034f6ea90644dc (diff) | |
download | cpython-3913bad4957ac30e58a7ffe9279333ad176a8eea.zip cpython-3913bad4957ac30e58a7ffe9279333ad176a8eea.tar.gz cpython-3913bad4957ac30e58a7ffe9279333ad176a8eea.tar.bz2 |
bpo-19896: Add typecodes 'q' and 'Q' to multiprocessing.sharedctypes (#2741)
* bpo-19896: Add typcodes 'q' and 'Q' to multiprocessing.sharedctypes. Patch by Antony Lee.
* Add NEWS entry.
* Slightly tweak NEWS entry
Make it clear this is more of a fix rather than a new feature.
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/sharedctypes.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Lib/multiprocessing/sharedctypes.py b/Lib/multiprocessing/sharedctypes.py index 7228751..066cf8f 100644 --- a/Lib/multiprocessing/sharedctypes.py +++ b/Lib/multiprocessing/sharedctypes.py @@ -23,12 +23,13 @@ __all__ = ['RawValue', 'RawArray', 'Value', 'Array', 'copy', 'synchronized'] # typecode_to_type = { - 'c': ctypes.c_char, 'u': ctypes.c_wchar, - 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, - 'h': ctypes.c_short, 'H': ctypes.c_ushort, - 'i': ctypes.c_int, 'I': ctypes.c_uint, - 'l': ctypes.c_long, 'L': ctypes.c_ulong, - 'f': ctypes.c_float, 'd': ctypes.c_double + 'c': ctypes.c_char, 'u': ctypes.c_wchar, + 'b': ctypes.c_byte, 'B': ctypes.c_ubyte, + 'h': ctypes.c_short, 'H': ctypes.c_ushort, + 'i': ctypes.c_int, 'I': ctypes.c_uint, + 'l': ctypes.c_long, 'L': ctypes.c_ulong, + 'q': ctypes.c_longlong, 'Q': ctypes.c_ulonglong, + 'f': ctypes.c_float, 'd': ctypes.c_double } # |