diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-04-16 00:16:30 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-04-16 00:16:30 +0200 |
commit | 0db176f8f6cfaf3277e6ef41d92b09a01b263f27 (patch) | |
tree | 9c881aaab525015223b7219c8fa12910e66354e9 /Lib/types.py | |
parent | 8a1d04c64372d4706572671a21ff9d3e4a6374ca (diff) | |
download | cpython-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.py | 1 |
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 |