v923z / micropython-ulab

a numpy-like fast vector module for micropython, circuitpython, and their derivatives
https://micropython-ulab.readthedocs.io/en/latest
MIT License
403 stars 111 forks source link

[BUG] Boolean arrays are not iterable #589

Closed v923z closed 1 year ago

v923z commented 1 year ago

Taken from https://github.com/v923z/micropython-ulab/issues/588#issuecomment-1429271479

>>> b
array([False, True, False], dtype=bool)
>>> b[-1] = True
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'bool' object isn't iterable

@mtroback

v923z commented 1 year ago

Fixed in https://github.com/v923z/micropython-ulab/pull/613.