What is the difference between an iterable
and an array_like
object in Python programs which use Numpy
?
Both iterable
and array_like
are often seen in Python documentation and they share some similar properties.
I understand that in this context an array_like
object should support Numpy
type operations like broadcasting, however Numpy
arrays area also iterable. Is it correct to say that array_like
is an extension (or super-set?) of iterable
?