This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maxbachmann
Recipients eryksun, ezio.melotti, maxbachmann, steven.daprano, vstinner
Date 2021-09-05.16:32:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630859528.58.0.150083497231.issue45105@roundup.psfhosted.org>
In-reply-to
Content
As far as a I understood this is caused by the same reason:

```
>>> s = '123\U00010900456'
>>> s
'123𐤀456'
>>> list(s)
['1', '2', '3', '𐤀', '4', '5', '6']
# note that everything including the commas is mirrored until ] is reached
>>> s[3]
'𐤀'
>>> list(s)[3]
'𐤀'
>>> ls = list(s)
>>> ls[3] += 'a'
>>> ls
['1', '2', '3', '𐤀a', '4', '5', '6']
```

Which as far as I understood is the expected behavior when a right-to-left character is encountered.
History
Date User Action Args
2021-09-05 16:32:08maxbachmannsetrecipients: + maxbachmann, vstinner, ezio.melotti, steven.daprano, eryksun
2021-09-05 16:32:08maxbachmannsetmessageid: <1630859528.58.0.150083497231.issue45105@roundup.psfhosted.org>
2021-09-05 16:32:08maxbachmannlinkissue45105 messages
2021-09-05 16:32:08maxbachmanncreate