[IPython-user] Fwd: Preparing for the 0.7.4 release
Thu Mar 22 20:02:18 CDT 2007
[ This was meant for the list...]
---------- Forwarded message ----------
From: Fernando Perez <email@example.com>
Date: Mar 22, 2007 7:01 PM
Subject: Re: [IPython-user] Preparing for the 0.7.4 release
To: Stefan van der Walt <firstname.lastname@example.org>
On 3/22/07, Stefan van der Walt <email@example.com> wrote:
> On Thu, Mar 22, 2007 at 05:28:56PM -0600, Fernando Perez wrote:
> > But there's one in particular that I'm a bit stumped on, the unicode bug:
> > http://projects.scipy.org/ipython/ipython/ticket/129
> > If anyone knows what to do here, I'd be very grateful for help
> > (patches, ideas, a reference on what to do, whatever).
> Hi Fernando
> The attached patch fixes the problem. I didn't check to see whether
> it crops up anywhere else though, but I believe that is the right way
> to handle input from the terminal.
> Index: IPython/iplib.py
> --- IPython/iplib.py (revision 2164)
> +++ IPython/iplib.py (working copy)
> @@ -1977,7 +1977,7 @@
> - line = raw_input_original(prompt)
> + line = raw_input_original(prompt).decode(sys.stdin.encoding)
> except ValueError:
> warn("\n********\nYou or a %run:ed script called sys.stdin.close() or sys.stdout.close()!\nExiting IPython!")
> self.exit_now = True
It works in all the tests I did quickly. If anyone finds a condition
where this doesn't help, or knows a good reason why it might be the
wrong approach, please let me know or reopen the ticket.
Otherwise, lots of brownie points to Stefan for this one.
More information about the IPython-user