This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年03月26日 22:22 by RoSanford, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue14420_part1.diff | brian.curtin, 2012年12月24日 00:14 | review | ||
| Messages (8) | |||
|---|---|---|---|
| msg156875 - (view) | Author: Bob (RoSanford) | Date: 2012年03月26日 22:22 | |
When calling winreg.SetValueEx(key, value_name, reserved, type, value), the value argument does not support the full range of a 32 bit unsigned integer, which the Window's registry API is expecting. For example, passing a value 0x80000000 will result in the following exception: OverflowError: Python int too large to convert to C long. For consistency with the Window's binding, it should support an unsigned long. |
|||
| msg156898 - (view) | Author: Tim Golden (tim.golden) * (Python committer) | Date: 2012年03月27日 08:18 | |
Brian - I think this is your area |
|||
| msg156935 - (view) | Author: Bob (RoSanford) | Date: 2012年03月27日 15:27 | |
Likewise, the winreg.QueryValueEx method returns a signed 32 bit value, instead of a 32 bit unsigned value. |
|||
| msg178022 - (view) | Author: Brian Curtin (brian.curtin) * (Python committer) | Date: 2012年12月24日 00:14 | |
Here is a patch for the first part (SetValueEx). |
|||
| msg178302 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年12月27日 16:30 | |
New changeset b9752b6c40f8 by Brian Curtin in branch '3.2': Fix #14420. Use PyLong_AsUnsignedLong to support the full range of DWORD. http://hg.python.org/cpython/rev/b9752b6c40f8 |
|||
| msg178303 - (view) | Author: Brian Curtin (brian.curtin) * (Python committer) | Date: 2012年12月27日 16:33 | |
This is fixed on 3.2 through 3.4. On 2.7 we get a ValueError trying to do the same thing so I'll create a separate issue for that since it involves fixing more than just the change in Py2Reg. |
|||
| msg178306 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年12月27日 18:29 | |
New changeset ccbb16719540 by Brian Curtin in branch '2.7': Fix #14420. Check for PyLong as well as PyInt when converting in Py2Reg. http://hg.python.org/cpython/rev/ccbb16719540 |
|||
| msg178307 - (view) | Author: Brian Curtin (brian.curtin) * (Python committer) | Date: 2012年12月27日 18:30 | |
Never mind msg178303. The fix was roughly the same and in the same area, so now we're covered on 2.7 as well. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:28 | admin | set | github: 58628 |
| 2012年12月27日 18:30:35 | brian.curtin | set | messages: + msg178307 |
| 2012年12月27日 18:29:20 | python-dev | set | messages: + msg178306 |
| 2012年12月27日 16:33:12 | brian.curtin | set | status: open -> closed versions: + Python 3.3, Python 3.4 messages: + msg178303 resolution: fixed stage: patch review -> resolved |
| 2012年12月27日 16:30:57 | python-dev | set | nosy:
+ python-dev messages: + msg178302 |
| 2012年12月24日 00:33:58 | brian.curtin | link | issue16759 dependencies |
| 2012年12月24日 00:14:19 | brian.curtin | set | keywords:
+ needs review, patch files: + issue14420_part1.diff messages: + msg178022 stage: needs patch -> patch review |
| 2012年03月27日 15:27:29 | RoSanford | set | messages: + msg156935 |
| 2012年03月27日 13:05:48 | brian.curtin | set | assignee: brian.curtin components: + Extension Modules stage: needs patch |
| 2012年03月27日 08:18:22 | tim.golden | set | nosy:
+ tim.golden, brian.curtin messages: + msg156898 |
| 2012年03月26日 22:22:16 | RoSanford | create | |