New submission from Shreyan Avigyan <shreyan.avig...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue44217> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com