summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2008-01-16 19:45:51 (GMT)
committerThomas Heller <theller@ctypes.org>2008-01-16 19:45:51 (GMT)
commit415c1e36a9f3cb119fad8aa5fcdcc9f31284782e (patch)
tree39db49aa09e4dc2cff313097c656af4414320143 /Misc
parent02ec289f3e16ee6b00ecf7ec8f8e0f2a3e1ad152 (diff)
downloadcpython-415c1e36a9f3cb119fad8aa5fcdcc9f31284782e.zip
cpython-415c1e36a9f3cb119fad8aa5fcdcc9f31284782e.tar.gz
cpython-415c1e36a9f3cb119fad8aa5fcdcc9f31284782e.tar.bz2
Raise a TypeError instead of a ValueError when too many initializers
are used in a Structure or Union constructor.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 29bd3dd..497889b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -366,6 +366,8 @@ Library
- 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.