Issue 19896: Exposing "q" and "Q" to multiprocessing.sharedctypes (original) (raw)

Created on 2013-12-05 11:13 by Antony.Lee, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
multiprocessing-longlong.patch Antony.Lee,2013-12-05 11:13 review
Pull Requests
URL Status Linked Edit
PR 2741 merged gdr@garethrees.org,2017-07-17 18:08
Messages (9)
msg205287 - (view) Author: Antony Lee (Antony.Lee) * Date: 2013-12-05 11:13
multiprocessing.sharedctypes was not updated after the "q" (c_longlong) and "Q" (c_ulonglong) typecodes were added to the array module (the docs claim that the typecode can be "one character typecode of the kind used by the array module"). The attached patch (just adding an entry to the typecode-to-type dict, as well as some more tests) fixes the issue.
msg298372 - (view) Author: Gareth Rees (gdr@garethrees.org) * (Python triager) Date: 2017-07-14 19:24
Patch looks good to me. The test cases are not very systematic (why only int, double, and long long?), but that's not the fault of the patch and shouldn't prevent its being applied.
msg298543 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-07-17 17:12
Uh, it's a pity this patch has been overlooked. Gareth, would you want to make a Github PR out of this?
msg298546 - (view) Author: Gareth Rees (gdr@garethrees.org) * (Python triager) Date: 2017-07-17 17:41
Has Antony Lee has made a copyright assignment?
msg298547 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-07-17 17:42
According to the asterisk displayed right of his name, he has, yes.
msg298548 - (view) Author: Gareth Rees (gdr@garethrees.org) * (Python triager) Date: 2017-07-17 17:42
(If he hasn't, I don't think I can make a PR because I read his patch and so any implementation I make now is based on his patch and so potentially infringes his copyright.)
msg298793 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-07-21 10:35
New changeset 3913bad4957ac30e58a7ffe9279333ad176a8eea by Antoine Pitrou (Gareth Rees) in branch 'master': bpo-19896: Add typecodes 'q' and 'Q' to multiprocessing.sharedctypes (#2741) https://github.com/python/cpython/commit/3913bad4957ac30e58a7ffe9279333ad176a8eea
msg298797 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-07-21 11:00
Unhappy buildbot: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/1065/steps/test/logs/stdio ... File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/test_multiprocessing_fork.py", line 2, in import test._test_multiprocessing File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/_test_multiprocessing.py", line 3180, in class _Foo(Structure): File "/srv/buildbot/buildarea/3.x.bolen-ubuntu/build/Lib/test/_test_multiprocessing.py", line 3184, in _Foo ('z', c_longlong,) NameError: name 'c_longlong' is not defined
msg298800 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2017-07-21 11:05
Apparently that buildbot doesn't have libffi. I submitted a PR in https://github.com/python/cpython/pull/2802.
History
Date User Action Args
2022-04-11 14:57:55 admin set github: 64095
2017-07-22 10:14:07 pitrou set status: open -> closedresolution: fixed
2017-07-21 11:05:51 pitrou set messages: +
2017-07-21 11:00:10 vstinner set status: closed -> opennosy: + vstinnermessages: + resolution: fixed -> (no value)
2017-07-21 10:35:57 pitrou set status: open -> closedresolution: fixedstage: patch review -> resolved
2017-07-21 10:35:35 pitrou set messages: +
2017-07-17 18:08:03 gdr@garethrees.org set pull_requests: + <pull%5Frequest2801>
2017-07-17 17:42:33 gdr@garethrees.org set messages: +
2017-07-17 17:42:20 pitrou set messages: +
2017-07-17 17:41:22 gdr@garethrees.org set messages: +
2017-07-17 17:12:18 pitrou set versions: + Python 3.7, - Python 3.4nosy: + pitroumessages: + type: enhancement
2017-07-17 13:00:15 gdr@garethrees.org set nosy: + benjamin.peterson
2017-07-14 19:31:21 Antony.Lee set nosy: - Antony.Lee
2017-07-14 19:24:25 gdr@garethrees.org set nosy: + gdr@garethrees.orgmessages: +
2013-12-05 11:40:42 pitrou set nosy: + sbtstage: patch review
2013-12-05 11:13:04 Antony.Lee create