mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #14386: Expose the dict_proxy internal type as types.MappingProxyType
This commit is contained in:
parent
8a1d04c643
commit
0db176f8f6
9 changed files with 369 additions and 75 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue