[issue46376] PyMapping_Check returns 1 for list
Petr Viktorin
report at bugs.python.org
Wed Jan 19 08:39:27 EST 2022
Petr Viktorin <encukou at gmail.com> added the comment:
Changing the existing functions is a no-go for backwards compatibility reasons. I think the best way forward would be to add a new function, and then possibly deprecate the old one if it's deemed dangerous.
If you want to push this forward, could you summarize the use case(s) and expected behavior (docs) for such a function? It probably doesn't need a PEP, but it's worth looking here for what to think about when making a proposal: https://www.python.org/dev/peps/pep-0001/#what-belongs-in-a-successful-pep
----------
nosy: +petr.viktorin
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46376>
_______________________________________
More information about the Python-bugs-list
mailing list