HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
111 stars 39 forks source link

Fix get() for non-existing attributes #14

Closed ghost closed 7 years ago

ghost commented 7 years ago

This allows that calls like obj.attrs.get('missing_attribute') return None, or the default value if it's supplied. This is also in line with how the get() method should behave for mapping container objects.