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 2016年06月17日 08:35 by serhiy.storchaka, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| ctypes_conflictin_initializers_error_message.patch | serhiy.storchaka, 2016年06月17日 10:24 | |||
| Messages (2) | |||
|---|---|---|---|
| msg268713 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2016年06月17日 08:35 | |
>>> from ctypes import *
>>> class POINT(Structure):
... _fields_ = [("x", c_int), ("y", c_int)]
...
>>> POINT(2, 3, x=4)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: duplicate values for field '???'
The name of conflicting field is not output correctly because it is expected to be bytes.
Proposed patch makes the error message always contain the name of conflicting field.
|
|||
| msg268772 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2016年06月18日 06:59 | |
New changeset ed81fc7e285b by Serhiy Storchaka in branch '3.5': Issue #27343: Fixed error message for conflicting initializers of ctypes.Structure. https://hg.python.org/cpython/rev/ed81fc7e285b New changeset 40e3790c2a00 by Serhiy Storchaka in branch 'default': Issue #27343: Fixed error message for conflicting initializers of ctypes.Structure. https://hg.python.org/cpython/rev/40e3790c2a00 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:32 | admin | set | github: 71530 |
| 2016年06月18日 07:00:07 | serhiy.storchaka | set | status: open -> closed resolution: fixed stage: commit review -> resolved |
| 2016年06月18日 06:59:20 | python-dev | set | nosy:
+ python-dev messages: + msg268772 |
| 2016年06月17日 10:24:52 | serhiy.storchaka | set | files: + ctypes_conflictin_initializers_error_message.patch |
| 2016年06月17日 10:23:33 | serhiy.storchaka | set | files: - ctypes_conflictin_initializers_error_message.patch |
| 2016年06月17日 09:26:16 | berker.peksag | set | stage: patch review -> commit review |
| 2016年06月17日 08:35:06 | serhiy.storchaka | create | |