Feature request: inherit ImageMetadata from collections.MutableMapping
Bug #648624 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
Wishlist
|
Antti Siira |
Bug Description
Hi,
would it be possible to make ImageMetadata inherit from collections.
Example implementations for missing functions:
def __iter__(self):
for key in self.exif_keys:
yield key
for key in self.iptc_keys:
yield key
for key in self.xmp_keys:
yield key
def __len__(self):
return len( [key for key in self] )
Related branches
lp:~antasi/pyexiv2/mutablemapping
- Olivier Tilloy: Approve (code functional)
-
Diff: 88 lines (+55/-1)2 files modifiedsrc/pyexiv2/metadata.py (+9/-1)
test/metadata.py (+46/-0)
Changed in pyexiv2: | |
assignee: | nobody → Antti Siira (antasi) |
status: | Confirmed → In Progress |
Changed in pyexiv2: | |
status: | In Progress → Fix Committed |
Changed in pyexiv2: | |
milestone: | none → 0.3 |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This was originally question #127006, filed by Antti Siira.