[IPython-dev] Should we fix this bug before 0.10?
Jörgen Stenarson
jorgen.stenarson at bostream.nu
Tue Mar 17 16:32:18 EDT 2009
Fernando Perez skrev:
>
> For those not subscribed to the bug, here's what I said there:
>
This is the comment I just made on that bug:
The proposed patch does not work for me on win32 with or without pyreadline
sys.stdin.encoding == "cp1252"
Standard python:
c:\python>python
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> "åäö"
'\xe5\xe4\xf6'
>>> u"åäö"
u'\xe5\xe4\xf6'
>>>
IPython from trunk:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: "åäö"
Out[1]: '\xe5\xe4\xf6'
In [2]: u"åäö"
Out[2]: u'\xe5\xe4\xf6'
In [3]:
Do you really want to exit ([y]/n)?
IPython with proposed change:
c:\python>ipython
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.9.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: "åäö"
Out[1]: '\xc3\xa5\xc3\xa4\xc3\xb6'
In [2]: u"åäö"
Out[2]: u'\xe5\xe4\xf6'
In [3]:
Do you really want to exit ([y]/n)?
More information about the IPython-dev
mailing list