[issue35349] collections.abc.Sequence isn't an abstract base class for array.array

Leonard de Ruijter report at bugs.python.org
Thu Nov 29 10:05:12 EST 2018


New submission from Leonard de Ruijter <alderuijter at gmail.com>:

array.array seems to have all the abstract methods of a collections.abc.Sequence and all the classes it inherits from, still the following returns False:
`isinstance(array.array("u"), collections.abc.Sequence)`

----------
messages: 330695
nosy: Leonard de Ruijter
priority: normal
severity: normal
status: open
title: collections.abc.Sequence isn't an abstract base class for array.array
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35349>
_______________________________________


More information about the Python-bugs-list mailing list