summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-04-16 00:16:30 +0200
committerVictor Stinner <victor.stinner@gmail.com>2012-04-16 00:16:30 +0200
commit0db176f8f6cfaf3277e6ef41d92b09a01b263f27 (patch)
tree9c881aaab525015223b7219c8fa12910e66354e9 /Lib/types.py
parent8a1d04c64372d4706572671a21ff9d3e4a6374ca (diff)
downloadcpython-git-0db176f8f6cfaf3277e6ef41d92b09a01b263f27.tar.gz
Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/types.py b/Lib/types.py
index ab354d1a71..08cbb83082 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -12,6 +12,7 @@ def _f(): pass
FunctionType = type(_f)
LambdaType = type(lambda: None) # Same as FunctionType
CodeType = type(_f.__code__)
+MappingProxyType = type(type.__dict__)
def _g():
yield 1