Comments (5)
Hey @jab, I hadn't seen bidict until just now. bijection is just a bit of code I had found myself copying between a few projects. You have definitely fleshed out the idea out more than I did, I'll see if there's anything I can add.
As for this project, maybe I'll depend on bidict and have bijection just be a wrapper around it to maintain the api for a bit.
from collections-extended.
Sounds great @mlenzen, look forward to hearing how it goes and improving things however I can!
from collections-extended.
Hey @mlenzen, came out with a new and much improved version of bidict last month (0.12.0) and wanted to let you know in case of interest.
(((
The two most significant improvements are (1) bulk updates fail clean (so if an update causes a ValueDuplicationError
for example, you can be sure that none of the given items was inserted), and (2) you can now specify custom on-key-duplication and on-value-duplication behaviors (RAISE, OVERWRITE, IGNORE) when updating a bidict.
More info in the changelog.
)))
from collections-extended.
Closing this as there isn't anything really actionable.
from collections-extended.
Might you still be interested in depending on (and wrapping) bidict, as you proposed upthread? Would be happy to consider any changes to bidict that could make that easier, in the interest of eventually converging on a single, convergent base implementation where the community could pool resources.
from collections-extended.
Related Issues (20)
- It's 2021
- Python 3.9.1 is out
- Use tox instead of GitHub matrix HOT 1
- Re-enable coverage HOT 1
- GitHub Action to publish HOT 1
- Dict views should be introspectable - From Python.org HOT 1
- bijection.__init__ tuples need to be len == 2
- Docs aren't updating HOT 2
- Duplicate history in change log
- Deploying docs deletes CNAME file HOT 1
- I don't know why this project only has 40 stars HOT 1
- MappedRange does not implement expected equality semantics HOT 3
- Ranges in RangeMap not always merged HOT 2
- Better pickling
- bags.CountsView a Mapping instead of Collection of tuples
- Remove remaining travis-ci references
- Type annotation for RangeMap keys being comparable
- bijection kwargs in __init__ aren't typed
- Python 3.11 compatibility HOT 1
- How about adding performace metrics for setlist vs dict/set/tuple
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 collections-extended.