Feature request: Inherit ImageMetadata from collections.MutableMapping
Asked by
Antti Siira
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] )
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- pyexiv2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Antti Siira for more information if necessary.
To post a message you must log in.