Skip to content

make api more python3-dict-like #13

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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