[pypy-issue] [issue1748] array.array is not an instance of collections.Iterable

kostia.lopuhin tracker at bugs.pypy.org
Tue Apr 29 22:16:33 CEST 2014


New submission from kostia.lopuhin <kostia.lopuhin at gmail.com>:

Under pypy nighly, array.array is not considered an instance of 
collections.Iterable - the following code works under CPython 2.7 and fails under 
PyPy:

import array
from collections import Iterable
assert isinstance(array.array('i', []), Iterable)

This might be a common way to check if thing is an iterable (see for example 
http://stackoverflow.com/a/1952655/217088)

----------
messages: 6816
nosy: kostia.lopuhin, pypy-issue
priority: bug
release: 2.3
status: unread
title: array.array is not an instance of collections.Iterable

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1748>
________________________________________


More information about the pypy-issue mailing list