Giter VIP home page Giter VIP logo

Comments (3)

jab avatar jab commented on June 7, 2024 1

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.

realcr avatar realcr commented on June 7, 2024

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.

jab avatar jab commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.