Raise a TypeError instead of a ValueError when too many initializers
are used in a Structure or Union constructor.
diff --git a/Misc/NEWS b/Misc/NEWS
index 29bd3dd..497889b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -366,6 +366,8 @@
- Issue #1831: ctypes now raises a TypeError if conflicting positional
and named arguments are passed to a Structure or Union initializer.
+ When too many positional arguments are passed, also a TypeError is
+ raised instead of a ValueError.
- Convert the internal ctypes array type cache to a WeakValueDict so
that array types do not live longer than needed.