[issue21991] The new email API should use MappingProxyType instead of returning new dicts.
R. David Murray
report at bugs.python.org
Mon Oct 13 19:04:04 CEST 2014
R. David Murray added the comment:
The principle example is the 'params' dictionary in headerregistry. Currently it gets recreated every time you access that attribute. You can *apparently* change it, but that has no real effect. Probably the computed value should be cached the first time the attribute is accessed, and a MappingProxy over the cached value returned.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21991>
_______________________________________
More information about the Python-bugs-list
mailing list