Message410627
Here's question to focus on: In what circumstances should a developer ever prefer PyMapping_Check() over PyType_HasFeature() with Py_TPFLAGS_MAPPING?
The latter doesn't give any new, useful information:
return o && Py_TYPE(o)->tp_as_mapping &&
Py_TYPE(o)->tp_as_mapping->mp_subscript;
I don't see any reason to build on top of this. It's best to just let it go gently into the good night without disrupting anything that currently happens to work. |
|
Date |
User |
Action |
Args |
2022-01-15 07:32:17 | rhettinger | set | recipients:
+ rhettinger, georg.brandl, pitrou, benjamin.peterson, methane, bukzor, aganders3, serhiy.storchaka, levkivskyi, bar.harel, miss-islington, brandtbucher, aviramha |
2022-01-15 07:32:17 | rhettinger | set | messageid: <1642231937.64.0.951543035928.issue46376@roundup.psfhosted.org> |
2022-01-15 07:32:17 | rhettinger | link | issue46376 messages |
2022-01-15 07:32:17 | rhettinger | create | |
|