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:
Check:
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__,.keysand.valuesCheck:
collections.abc.Mappingcollections.abc.MutableMappinghttps://github.com/python/cpython/blob/3.13/Lib/_collections_abc.py#L924