Closed ghost closed 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.
obj.attrs.get('missing_attribute')
None
get()
This allows that calls like
obj.attrs.get('missing_attribute')
returnNone
, or the default value if it's supplied. This is also in line with how theget()
method should behave for mapping container objects.