We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm unable to use OrderedSet.index(...) function with frozensets as values. It throws an error when the key is a frozenset.
OrderedSet.index(...)
frozenset
Code to recreate the error:
os = OrderedSet([frozenset([1, 2])]) i = os.index(frozenset([1, 2]))
Traceback (most recent call last): File "<PATH>\src\main.py", line 11, in <module> i = os.index(frozenset([1, 2])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<PATH>\Python311\Lib\site-packages\ordered_set\__init__.py", line 246, in index return [self.index(subkey) for subkey in key] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<PATH>\Python\Python311\Lib\site-packages\ordered_set\__init__.py", line 246, in <listcomp> return [self.index(subkey) for subkey in key] ^^^^^^^^^^^^^^^^^^ File "<PATH>\Python\Python311\Lib\site-packages\ordered_set\__init__.py", line 247, in index return self.map[key] ~~~~~~~~^^^^^ KeyError: 1
Thanks for this amazing utility!
The text was updated successfully, but these errors were encountered:
@rspeer Hey, sorry for the ping- is this package still in 'active' development? 🙂
Sorry, something went wrong.
No branches or pull requests
I'm unable to use
OrderedSet.index(...)
function withfrozenset
s as values. It throws an error when the key is a frozenset.Code to recreate the error:
Thanks for this amazing utility!
The text was updated successfully, but these errors were encountered: