SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 16 Python

bpo-43977: Use tp_flags for collection matching (GH-25723)

* Add Py_TPFLAGS_SEQUENCE and Py_TPFLAGS_MAPPING, add to all relevant standard builtin classes.

* Set relevant flags on collections.abc.Sequence and Mapping.

* Use flags in MATCH_SEQUENCE and MATCH_MAPPING opcodes.

* Inherit Py_TPFLAGS_SEQUENCE and Py_TPFLAGS_MAPPING.

* Add NEWS

* Remove interpreter-state map_abc and seq_abc fields.
M
Mark Shannon committed
069e81ab3da46c441335ca762c4333b7bd91861d
Parent: 2abbd8f
Committed by GitHub <noreply@github.com> on 4/30/2021, 8:50:28 AM