Message358836
>>> b'\xf0\x9f\x98\x86'.decode('utf8')
'😆'
>>> '😆'.encode('utf8')
b'\xf0\x9f\x98\x86'
...now if you write '😆'.encode() then you move the cursor between the brackets and type "'utf8'" you will have this result while the cursor remains in the brackets:
>>> '😆'.encode()''8ftu
SyntaxError: invalid syntax
>>>
I've attached a video that shows this behavior.
Thanks for your attention. Cheers. |
|
Date |
User |
Action |
Args |
2019-12-23 21:11:54 | dmaxime | set | recipients:
+ dmaxime, terry.reedy |
2019-12-23 21:11:54 | dmaxime | set | messageid: <1577135514.42.0.144036776783.issue39126@roundup.psfhosted.org> |
2019-12-23 21:11:54 | dmaxime | link | issue39126 messages |
2019-12-23 21:11:54 | dmaxime | create | |
|