There are many cases in which it is awkward that testing whether an object is a 
sequence returns `True` for instances of of `str`, `bytes`, etc.

This proposal is a serious breakage of backward compatibility, so would be 
something for Python 4.x, not 3.x.

Instead of those objects _being_ sequences, have them provide views that are 
sequences using a method named something like `members` or `items`.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ZP2OKYEH5ZQLNJDCWVF3X6AEB3VQQT6V/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to