[docs] [issue26547] Undocumented use of the term dictproxy in vars() documentation

Martin Panter report at bugs.python.org
Sun Mar 13 03:56:10 EDT 2016


Martin Panter added the comment:

In Python 2, the class was called “dictproxy”, the repr() used “dict_proxy” with an underscore, and it is exposed as types.DictProxyType. So I guess that is where the term comes from. In Python 3.3, Issue 14386 renamed the class and repr() to “mappingproxy”, and re-introduced it to types as MappingProxyType. (DictProxyType was previously removed in revision 15649aef2db5.)

So in Python 3 I would probably change it from “dictproxy” to a types.MappingProxyType link.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26547>
_______________________________________


More information about the docs mailing list