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.

Author shihai1991
Recipients docs@python, shihai1991
Date 2019-07-06.04:28:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562387286.6.0.643530884918.issue37513@roundup.psfhosted.org>
In-reply-to
Content
Python 3.9.0a0 (heads/master-dirty:80097e0, Jul  6 2019, 02:14:54)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> class POINT(Structure):
...     _fields_ = [("x", c_int),
...                 ("y", c_int)]
...
>>> POINT(1, 2, 3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: too many initializers

and the init function in:
https://github.com/python/cpython/blob/master/Modules/_ctypes/_ctypes.c#L4335
History
Date User Action Args
2019-07-06 04:28:06shihai1991setrecipients: + shihai1991, docs@python
2019-07-06 04:28:06shihai1991setmessageid: <1562387286.6.0.643530884918.issue37513@roundup.psfhosted.org>
2019-07-06 04:28:06shihai1991linkissue37513 messages
2019-07-06 04:28:06shihai1991create