-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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 - also implement
__iter__,.keysand.values
Check:
collections.abc.Mappingcollections.abc.MutableMappinghttps://github.com/python/cpython/blob/3.13/Lib/_collections_abc.py#L924
Metadata
Metadata
Assignees
Labels
No labels