Message401095
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. |
|
Date |
User |
Action |
Args |
2021-09-05 16:32:08 | maxbachmann | set | recipients:
+ maxbachmann, vstinner, ezio.melotti, steven.daprano, eryksun |
2021-09-05 16:32:08 | maxbachmann | set | messageid: <1630859528.58.0.150083497231.issue45105@roundup.psfhosted.org> |
2021-09-05 16:32:08 | maxbachmann | link | issue45105 messages |
2021-09-05 16:32:08 | maxbachmann | create | |
|