Personally, I dislike the presumption that you state in the bpo, that typing and linters have changed things so that being a sequence is more closely tied to implementing the Sequence abc these days. I consider it a flaw in typing and linters if that’s the case, not something to embrace.
Paul. PS Writing on mobile, sorry for any typos On Sat, 15 Jan 2022 at 04:26, Bar Harel <bzvi7...@gmail.com> wrote: > 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/ >
_______________________________________________ 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/T4LYOK4BQVM4VPMBYKPQP6LYT3CAGNIC/ Code of Conduct: http://python.org/psf/codeofconduct/