There's a long time issue of trying to differentiate mappings and sequences in the C-API in a fast and reliable way.
Due to recent changes, we might be able to do so at last, by checking tp_flags + str/bytes/bytearray which are considered unique. This might be a breaking change in the Stable ABI promise but one that can be considered a bug fix as the current behavior is lacking. What do you think? bpo: https://bugs.python.org/issue46376 Best regards, Bar Harel
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/WTIKR5DGMZRKRRAZGFTD4EPG5ITFHOVS/ Code of Conduct: http://python.org/psf/codeofconduct/