cpython/Misc/NEWS.d/next/Core and Builtins/2018-10-21-17-43-48.bpo-297...

5 lines
251 B
ReStructuredText

Raise :exc:`ValueError` instead of :exc:`OverflowError` in case of a negative
``_length_`` in a :class:`ctypes.Array` subclass. Also raise :exc:`TypeError`
instead of :exc:`AttributeError` for non-integer ``_length_``.
Original patch by Oren Milman.