Message410629
I agree that a developer should and would prefer the `Py_TPFLAGS_*` but when you visit https://docs.python.org/3/c-api/sequence.html
It seems like the best practice to determine Sequence protocol is by using this function, hence leading to confusion. There's no recommendation to use the new `Py_TPFLAGS_*`.
To have this knowledge of `Py_TPFLAGS_*` one should be very knowledgable in Python's C-API.
How about adding a deprecation note to `PyMapping_Check` & `PySequence_Check` in the documentation, suggesting the alternative path (to use `PyType_HasFeature`)? |
|
Date |
User |
Action |
Args |
2022-01-15 08:19:35 | aviramha | set | recipients:
+ aviramha, georg.brandl, rhettinger, pitrou, benjamin.peterson, methane, bukzor, aganders3, serhiy.storchaka, levkivskyi, bar.harel, miss-islington, brandtbucher |
2022-01-15 08:19:35 | aviramha | set | messageid: <1642234775.16.0.426433087193.issue46376@roundup.psfhosted.org> |
2022-01-15 08:19:35 | aviramha | link | issue46376 messages |
2022-01-15 08:19:35 | aviramha | create | |
|