Message268713
| Author |
serhiy.storchaka |
| Recipients |
amaury.forgeotdarc, belopolsky, meador.inge, serhiy.storchaka |
| Date |
2016年06月17日.08:35:06 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1466152506.85.0.761729161431.issue27343@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> 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. |
|