diff options
author | Thomas Heller <theller@ctypes.org> | 2008-01-16 19:45:51 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-01-16 19:45:51 (GMT) |
commit | 415c1e36a9f3cb119fad8aa5fcdcc9f31284782e (patch) | |
tree | 39db49aa09e4dc2cff313097c656af4414320143 /Misc | |
parent | 02ec289f3e16ee6b00ecf7ec8f8e0f2a3e1ad152 (diff) | |
download | cpython-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/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |