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
the current api is not quite like a dictionary, but rather like borgbackup's hashindex api is like.
considering that borgbackup has a wrapper class around borghash classes anyway, we can change borghash api to be more like python3 dict api.
maybe not implement everything, but name the frequently used stuff as usual:
.iteritems
.items
__init__
.update
__iter__
.keys
.values
Check:
collections.abc.Mapping
collections.abc.MutableMapping
The text was updated successfully, but these errors were encountered:
Note: subclassing from collections.abc.MutableMapping didn't work.
Cython complained (IIRC) that this is not an extension class.
Sorry, something went wrong.
ThomasWaldmann
No branches or pull requests
the current api is not quite like a dictionary, but rather like borgbackup's hashindex api is like.
considering that borgbackup has a wrapper class around borghash classes anyway, we can change borghash api to be more like python3 dict api.
maybe not implement everything, but name the frequently used stuff as usual:
.iteritems
->.items
__init__
: make all special stuff pure kwargs.update
__iter__
,.keys
and.values
Check:
collections.abc.Mapping
collections.abc.MutableMapping
https://github.com/python/cpython/blob/3.13/Lib/_collections_abc.py#L924The text was updated successfully, but these errors were encountered: