-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
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
TypeError: unhashable type: 'slice' #36
Comments
Hi @realcr, sorry you were bitten by the breaking changes! Yes, after careful consideration and discussion in #19, the slice syntax was removed in 0.10.0, and I definitely made sure to document this prominently, see http://bidict.readthedocs.io/en/v0.10.0.post1/changelog.html#breaking-api-changes If you'd like to upgrade to the latest, I hope it isn't too hard to replace your So happy to hear you find bidict useful. By the way, if you'd like to share your use case, I'm always interested to better understand how people are using bidict, and how it could meet their needs better. On that note, I've been working hard on a new release, and am excited to see how people like it. Please feel free to join us on gitter if you're interested (very low activity), where I announce things like new releases (and by default Gitter will email you about mentions you missed). |
Hi Jab, I just fixed all my code to use the new b.inv syntax, and it works perfectly, thank you. I use bdict for lots of small things inside my python modules. I recently used it for a ticketing system, and before I used it to match between message name and message id in a lower level messaging protocol used with asyncio. I think bdict is a much cleaner solution that the good old two dictionaries with duct tape around them. |
Glad you were able to get your code working again so quickly! And thanks for sharing your use cases, so great to hear bidict has offered you a cleaner solution than the old two-dict approach. By the way, I made a bunch more progress today on the soon-to-be-released version, and would love to hear what you think. The latest summary of the changes can be found here: |
Hi Jab, thank you for this great package.
I recently upgraded my bidict to version 11.0 from an older version (bidict==0.9.0.post1), and all of my tests broke.
It seems like the syntax bd[:some_key] is not working anymore.
Is this behaviour intentional? I just checked at the docs and it seems like any mention of this syntax is gone.
The text was updated successfully, but these errors were encountered: