diff options
author | 2024-08-23 11:26:03 +0200 | |
---|---|---|
committer | 2024-08-23 10:26:03 +0100 | |
commit | 95b4f9c9ad3d7a13442a6874bbcf3683d17723dc (patch) | |
tree | 27bf3987d32fd00a78c5f00e313be97ca5bbb306 /Objects | |
parent | [3.13] gh-122546: Relax SyntaxError check when raising errors on the new REPL... (diff) | |
download | cpython-95b4f9c9ad3d7a13442a6874bbcf3683d17723dc.tar.gz cpython-95b4f9c9ad3d7a13442a6874bbcf3683d17723dc.tar.bz2 cpython-95b4f9c9ad3d7a13442a6874bbcf3683d17723dc.zip |
[3.13] GH-120097: Make FrameLocalsProxy a mapping (GH-120101) (GH-120749)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/frameobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 6ed56bf2707..90b975b3f43 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -740,7 +740,7 @@ PyTypeObject PyFrameLocalsProxy_Type = { .tp_as_mapping = &framelocalsproxy_as_mapping, .tp_getattro = PyObject_GenericGetAttr, .tp_setattro = PyObject_GenericSetAttr, - .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, + .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_MAPPING, .tp_traverse = framelocalsproxy_visit, .tp_clear = framelocalsproxy_tp_clear, .tp_richcompare = framelocalsproxy_richcompare, |