Closed alchemyst closed 3 years ago
Couldn't find any more instances of this after the refactoring in c5ef42f8bd6c37ec2f7d33135b241b06d4613900.
There are still some in _shgo_lib/_complex.py
(see for instance here)
Fixed with 9b206ee0bfe8bcc9bcaecad0ea508e609c0fc289
There are a couple of places in the code where we use
is
to check for string equality, soThis is not guaranteed to work for all strings as it relies on an implementation detail in cpython (where small strings are cached. It should be taken away wherever it is used.