Learning_Python icon indicating copy to clipboard operation
Learning_Python copied to clipboard

Numpy Arrays are not Sequences

Open sebbyjp opened this issue 1 year ago • 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.

sebbyjp avatar Jan 07 '24 06:01 sebbyjp