blob: 9e79bb388e85f56bf8b86470e2c0fe44b85d2fae (
plain)
1
2
3
4
|
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.
|