Skip to content

make api more python3-dict-like #13

@ThomasWaldmann

Description

@ThomasWaldmann

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__, .keys and .values

Check:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions