[issue14386] Expose dictproxy as a public type
STINNER Victor
report at bugs.python.org
Thu Mar 29 13:08:38 CEST 2012
STINNER Victor <victor.stinner at gmail.com> added the comment:
"It is exposed as types.DictProxyType in Python 2..."
Yes, but the purpose of the issue is to enable its constructor. You cannot instanciate a DictProxy in Python 2:
>>> import types
>>> types.DictProxyType
<type 'dictproxy'>
>>> types.DictProxyType({})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: cannot create 'dictproxy' instances
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14386>
_______________________________________
More information about the Python-bugs-list
mailing list