rsokl/Learning_Python

Numpy Arrays are not Sequences

sebbyjp opened this issue · 0 comments

Just wanted to bring it to your attention.

You call it a sequence here: https://www.pythonlikeyoumeanit.com/Module2_EssentialsOfPython/SequenceTypes.html but zero sized numpy arrays prohibit arrays from being Sequences.

isinstance(np.array([1,2]), collections.abc.Sequence) also returns False.