We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59daace commit 349374dCopy full SHA for 349374d
1 file changed
Lib/types.py
@@ -58,7 +58,10 @@ def _m(self): pass
58
raise TypeError
59
except TypeError as exc:
60
TracebackType = type(exc.__traceback__)
61
- FrameType = type(exc.__traceback__.tb_frame)
+
62
+ _f = (lambda: sys._getframe())()
63
+ FrameType = type(_f)
64
+ FrameLocalsProxyType = type(_f.f_locals)
65
66
GetSetDescriptorType = type(FunctionType.__code__)
67
MemberDescriptorType = type(FunctionType.__globals__)
@@ -69,7 +72,6 @@ def _m(self): pass
69
72
EllipsisType = type(Ellipsis)
70
73
NoneType = type(None)
71
74
NotImplementedType = type(NotImplemented)
- FrameLocalsProxyType = (lambda: type(sys._getframe().f_locals))()
75
76
# CapsuleType cannot be accessed from pure Python,
77
# so there is no fallback definition.
0 commit comments