[IPython-dev] String encoding

Thomas Kluyver takowl@gmail....
Fri Jun 17 14:54:44 CDT 2011

On 17 June 2011 18:54, Jörgen Stenarson <jorgen.stenarson@bostream.nu>wrote:

> 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.

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.

> 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.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20110617/cd529af1/attachment.html 

More information about the IPython-dev mailing list