[issue44217] [IDLE] Weird behaviour in IDLE while dealing with non-ASCII characters

Shreyan Avigyan report at bugs.python.org
Sun May 23 11:36:23 EDT 2021


New submission from Shreyan Avigyan <shreyan.avigyan at gmail.com>:

In IDLE, suppose I want to print 😀. I can write it like, print(b'\xf0\x9f\x98\x80'.decode()). I can't print it in console so I tried it in IDLE. It worked. Hurray! Hold on though. Now I thought how can I print 😀 directly. So I used the command 'print("😀")' in IDLE and I saw a weird behavior. Actually to be accurate, many weird behaviors!

1. If I type in 'print(😀))' and I want to delete the extra ')' but it just stuck. I can't backspace or delete anything I've typed but I can type more.

2. If we move our cursor (typing cursor, not the flying one) over the output using arrow keys we would see that the characters are moving and occasionally dancing.

3. (Here comes the laughing part) If we type in 'print(😀)' and then move our typing cursor just between the emoji and the ')' and start typing we would see we're typing in the opposite way. So if we move our cursor and intend to type 'hello' we would actually end up typing 'olleh'.

I'm not sure but these look like bugs to me.

----------
assignee: terry.reedy
components: IDLE
messages: 394201
nosy: shreyanavigyan, terry.reedy
priority: normal
severity: normal
status: open
title: [IDLE] Weird behaviour in IDLE while dealing with non-ASCII characters
type: behavior

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


More information about the Python-bugs-list mailing list