[issue21991] The new email API should use MappingProxyType instead of returning new dicts.
R. David Murray
report at bugs.python.org
Wed Oct 15 15:10:24 CEST 2014
R. David Murray added the comment:
Personally I would test that the returned object is read only, rather than checking for MappingProxyType explicitly, but you can argue either way as being better :)
As for other occurrences, I must have been either misremembering, or I refactored the other occurrences out of existence earlier.
Yes I will apply this.
----------
stage: patch review -> commit review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21991>
_______________________________________
More information about the Python-bugs-list
mailing list