On 9/01/21 12:54 pm, Steven D'Aprano wrote:
Your proposal would still have the surprising
consequences that reversing a chain that includes a string would
surprisingly split the string into a sequence of characters in reverse
order.

Not that surprising, since chain already splits strings into
sequences of characters:

>>> list(itertools.chain("abc", "def"))
['a', 'b', 'c', 'd', 'e', 'f']

--
Greg
_______________________________________________
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/S7PEI27MGY7PLPLMKQXQONTJI3XDOQND/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to