9 Jan
2021
9 Jan
'21
12:11 a.m.
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