[Python-ideas] Default value for input
Paul Moore
p.f.moore at gmail.com
Fri Apr 4 11:14:12 CEST 2014
On 4 April 2014 07:01, Andrew Barnert <abarnert at yahoo.com> wrote:
> I suspect you mean #2. In which case, again, look at how much code readline is. You're talking about duplicating all of that code, just to solve part of the problem (readline is still depending on your terminal to do a lot of the work, which you don't get in raw mode), on just one platform.
There's also pyreadline, which is a Pure-Python (plus ctypes)
implementation of readline for Windows. AFAIK, it's pretty robust
(IPython uses it), but the experience is so different from "normal"
console behaviour that it's a but unnerving to a die-hard Windows
console user like me. (The problem is that Python's core detects that
readline is present and uses it, so if you install it, you get it in
your normal interpreter whether you want it or not - I believe they
were looking at fixing that in pyreadline, but it's been a while since
I checked so I don't know if that's been done yet).
Paul
More information about the Python-ideas
mailing list