<div class="gmail_quote">On 17 June 2011 18:54, Jörgen Stenarson <span dir="ltr"><<a href="mailto:jorgen.stenarson@bostream.nu">jorgen.stenarson@bostream.nu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

 I think the most annoying thing will be when trying to reevaluate a repr of some string object that happens to contain non-ascii characters, I do not know how often that happens.</blockquote><div><br>As far as I know, the repr never displays those characters in a byte string - it always uses the '\xe9' notation, which should work with no problems.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> I guess we will see how many questions/"bugs reports" we get about this, because alternative 1 is different from how the regular prompt works.</blockquote>

<div><br>Unfortunately, both alternatives are different from how the pure Python prompt works, at least for some users (e.g. with cp850, neither alternative will work for both unicode and bytes literals). The Python interactive shell must be able to call the parser in a way that's not exposed to pure Python code.<br>

<br>Thanks,<br>Thomas <br></div></div><br>