Comments (3)
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 b[:foo]
references with b.inv[foo]
.
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).
from bidict.
Hi Jab, I just fixed all my code to use the new b.inv syntax, and it works perfectly, thank you.
I should have noticed the changes. I was disconnected from Pypi for a while :)
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.
from bidict.
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:
https://bidict.readthedocs.io/en/dev/changelog.html
And a little more explanation of some of the new safety features can be found here:
http://bidict.readthedocs.io/en/dev/basic-usage.html#uniqueness-of-values
If you have any thoughts, please don't hesitate to share them in https://gitter.im/jab/bidict or https://gitter.im/jab.
Thanks for using bidict!
from bidict.
Related Issues (20)
- Bug in BidirectionalMapping.__subclasshook__(): Any class with an inverse attribute is considered a collections.abc.Mapping HOT 8
- Suggestion: Include licence in documentation HOT 3
- Not installable from GitHub release tarball HOT 6
- Add more properties based tests HOT 1
- global name 'BidirectionalMapping' is not defined HOT 21
- github git tags out of sync since 0.18.4 HOT 3
- Missing __all__ in bidict/__init__.py leads to implicit reexport error with mypy in strict mode. HOT 9
- logo HOT 5
- Dependency Dashboard
- Type hints for Bidict type HOT 2
- Try slipcover HOT 1
- Maybe use nix for devcontainer and GHA “tests” workflow
- Why it returns None when I use bidict?
- Will you add a persistence method? HOT 1
- Improve OpenSSF Scorecard HOT 6
- Swap syntax does not work HOT 4
- Automate upgrading dev dependencies HOT 1
- Type alias definition for `MISSING` results in type violations HOT 1
- test fails with python3.12 HOT 3
- Remove dead batteries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bidict.