mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
[3.13] GH-120097: Make FrameLocalsProxy a mapping (GH-120101) (GH-120749)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
This commit is contained in:
parent
fda8aec625
commit
95b4f9c9ad
4 changed files with 20 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue