axiacore / py-expression-eval

MIT License
149 stars 54 forks source link

`index()` should be replace with `find()` #67

Open UriyaHarpeness opened 3 years ago

UriyaHarpeness commented 3 years ago

index() does not return -1 in case the string was not found, at least in python 3.6.

https://github.com/axiacore/py-expression-eval/blob/fd18b6fb1b11b2c74200aef3969b088f8d5fc4e4/py_expression_eval/__init__.py#L828