## Feature RustPython ``` >>>>> '日月abc'.index('a') 6 >>>>> ``` Cpython ``` >>> '日月abc'.index('a') 2 >>> ``` It is probably because the `str.find` in Rust returns the index of byte, instead of the code point. I'll try fix this. ## Python Documentation https://docs.python.org/3.8/library/stdtypes.html?highlight=str#str.index
Feature
RustPython
Cpython
It is probably because the
str.findin Rust returns the index of byte, instead of the code point.I'll try fix this.
Python Documentation
https://docs.python.org/3.8/library/stdtypes.html?highlight=str#str.index