New submission from kostia.lopuhin <[email protected]>:

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 <[email protected]>
<https://bugs.pypy.org/issue1748>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to