[New-bugs-announce] [issue39126] Some characters confuse the editor

dmaxime report at bugs.python.org
Mon Dec 23 16:11:54 EST 2019


New submission from dmaxime <dmaxime at hotmail.it>:

>>> 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.

----------
assignee: terry.reedy
components: IDLE
files: python3ide bug.mp4
messages: 358836
nosy: dmaxime, terry.reedy
priority: normal
severity: normal
status: open
title: Some characters confuse the editor
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48801/python3ide bug.mp4

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39126>
_______________________________________


More information about the New-bugs-announce mailing list