<div dir="ltr">As <a href="http://www.python.org/dev/peps/pep-0434/">http://www.python.org/dev/peps/pep-0434/</a> has been accepted we *can* do enhancements in IDLE for Python 2.<div style>Not sure we *should* do it for this case.</div>
<div style>Lets discuss in <a href="http://bugs.python.org/issue17348">http://bugs.python.org/issue17348</a> and <a href="http://bugs.python.org/issue15809">http://bugs.python.org/issue15809</a>.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 3:03 PM, Tomoki Imai <span dir="ltr"><<a href="mailto:tomo832@gmail.com" target="_blank">tomo832@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:14px"><div>Of cource, I know, using Python3 is the best way.<br></div><div>But, there are libraries only supporting Python2 (i.e python-xlib).</div>
<div>Using Python2's dual-text system is not so difficult for me.</div><div>Because I'm Japanese, I had to handle Japanese with many charsets in every programs I made.</div><div>And I have one simple rule.</div><div>
<br></div><div>"Use unicode type all time.</div><div>Input must be converted to unicode soon.</div><div>Output must be converted to str late."</div><div><br></div><div>And, fixing this bug can open a can of worms ?</div>
<div>I think, we should open it.</div><div>IDLE needs cleanup such as removing too old codes.</div></div><div style="font-family:arial,sans-serif;font-size:14px"><div><img></div>
<div><br></div></div><div style="font-family:arial,sans-serif;font-size:14px"><div></div><div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">2013/4/22 Terry Jan Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 4/21/2013 4:20 PM, Andrew Svetlov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think fixing this bug for python 2 can open a can of worms. Python 3<br>
works correctly IIRC.<br>
<br>
On Sun, Apr 21, 2013 at 7:47 PM, Tomoki Imai <<a href="mailto:tomo832@gmail.com" target="_blank">tomo832@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi.<br>
<br>
I found bug (I think) in IDLE.<br>
That is, unicode literal in IDLE.<br>
You can reconfirm it by executing following code in IDLE.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
u"こんにちは"<br>
</blockquote></blockquote>
u'\xe3\x81\x93\xe3\x82\x93\<u></u>xe3\x81\xab\xe3\x81\xa1\xe3\<u></u>x81\xaf'<br>
("こんにちは" means hello in Japanese.It's unicode literal.)<br>
<br>
In normal Interpreter ( running in console)<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
u"こんにちは"<br>
</blockquote></blockquote>
u'\u3053\u3093\u306b\u3061\<u></u>u306f'<br>
<br>
I found a solution.<br>
I posted here.But I found it was closed after I posted.<br>
</blockquote></blockquote>
<br></div>
To be clearer, it was closed a March 8.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://bugs.python.org/issue17348" target="_blank">http://bugs.python.org/<u></u>issue17348</a><br>
<br>
Can I reopen it?Or, this is not bug?<br>
</blockquote></blockquote>
<br></div>
David reopened, but like Andrew, I am wary. One reason we made unicode the text type in Python 3 was that patching the Python 2 dual-text system became a bit like playing Whack-A-Mole<br>
<a href="http://en.wikipedia.org/wiki/Whac-A-Mole" target="_blank">http://en.wikipedia.org/wiki/<u></u>Whac-A-Mole</a><div><div><br>
<br>
<br>
______________________________<u></u>_________________<br>
IDLE-dev mailing list<br>
<a href="mailto:IDLE-dev@python.org" target="_blank">IDLE-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/idle-dev" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/idle-dev</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
IDLE-dev mailing list<br>
<a href="mailto:IDLE-dev@python.org">IDLE-dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/idle-dev" target="_blank">http://mail.python.org/mailman/listinfo/idle-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Andrew Svetlov
</div>