New submission from David E. Franco G.:
wandering for the internet I fount some unicode character in a random comment,
and just for curiosity I wanted to use python (3.6.1) to see their value, so I
copy those characters and paste them in IDLE, and in doing so it just close
without warning or explanation.
the character in question are: 🔫 🔪
(chr(128299) and chr(128298))
then I put them in a script
text = "🔫 🔪"
print(text)
and try to load it but instead it open a new empty scrip, again without
apparent reason, which for some reason I can't close, I needed to kill the
process for that.
I try the same with the IDLE in python 2.7.13 for the first one I got
Unsupported characters in input
which at least is something, and changing the script a little
# -*- coding: utf-8 -*-
text = u"🔫 🔪"
print(text)
it work without problem and print correctly.
Also opening the script in interactive mode (python -i myscript.py) it work as
expected and I get their numbers (that I put above).
So why is that? and please fix it.
----------
assignee: terry.reedy
components: IDLE
messages: 291289
nosy: David E. Franco G., terry.reedy
priority: normal
severity: normal
status: open
title: IDLE got unexpexted bahavior when trying to use some characters
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30019>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com