Message268713
>>> 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. |
|
| Date |
User |
Action |
Args |
| 2016-06-17 08:35:06 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, amaury.forgeotdarc, belopolsky, meador.inge |
| 2016-06-17 08:35:06 | serhiy.storchaka | set | messageid: <1466152506.85.0.761729161431.issue27343@psf.upfronthosting.co.za> |
| 2016-06-17 08:35:06 | serhiy.storchaka | link | issue27343 messages |
| 2016-06-17 08:35:06 | serhiy.storchaka | create | |
|