You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
count() method from bytes sometimes returns wrong counts.
steps to reproduce:
MicroPython v1.19.1-dirty on 2022-09-24; linux [GCC 10.3.0] version
Use Ctrl-D to exit, Ctrl-E for paste mode
>>> b'\xaa \xaa'.count(b'\xaa')
1
>>>
tested on unix and stm32 ports.
expected:
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> b'\xaa \xaa'.count(b'\xaa')
2
>>>