[issue25737] array is not a Sequence
Josh Rosenberg
report at bugs.python.org
Thu Feb 14 11:29:33 EST 2019
Josh Rosenberg <shadowranger+python at gmail.com> added the comment:
This should not be closed as a duplicate. Yes, array.array isn't automatically a Sequence, but since it isn't, the array module should be modified to explicitly do the equivalent of:
import _collections_abc
_collections_abc.Sequence.register(array)
so it's properly registered manually.
----------
nosy: +josh.r
resolution: duplicate ->
status: closed -> open
superseder: issubclass without registration only works for "one-trick pony" collections ABCs. ->
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue25737>
_______________________________________
More information about the Python-bugs-list
mailing list