[IPython-dev] callback API for readline [missing attachment] (was Re: ipython embedded in twisted, no threads)
Stefan Rank
list-ener at strank.info
Thu May 3 14:11:19 EDT 2007
[[Sending again, this time including the attachment =) ]]
on 02.05.2007 14:13 Stefan Rank said the following:
> on 18.04.2007 20:37 Jörgen Stenarson said the following:
<snip: async emacs.py additions>
> I will also try to expose the GNU readline callback variant on Linux
> using ctypes and see how it behaves.
Attached is an updated version of the test script that works on both
Windows (requires the patched emacs.py) and Linux.
However: there are additional newlines printed on Windows (see below).
Does pyreadline print a newline before prompting?
Or is there some interaction with normal print statements?
cheers,
stefan
Output on Linux::
wrstl at TOPFLAP-pm735 $ python readlinecallbacktest.py
Starting test, please do type:
jjjfss
Got line: jjjfss
Got 1 of 10, more typing please:
alsddf
Got line: alsddf
Got 2 of 10, more typing please:
asdf
Got line: asdf
Got 3 of 10, more typing please:
...
Got 9 of 10, more typing please:
adsf
Got line: adsf
Got 10 of 10, more typing please:
asdf
Got line: asdf
Done, index = 9
wrstl at TOPFLAP-pm735 $
Output on Windows::
D:\HOME\temp>python readlinecallbacktest.py
Starting test, please do type:
asdf
Got line: asdf
Got 1 of 10, more typing please:
fff
Got line: fff
Got 2 of 10, more typing please:
assd
Got line: assd
Got 3 of 10, more typing please:
...
Got 9 of 10, more typing please:
adf
Got line: adf
Got 10 of 10, more typing please:
adf
Got line: adf
Done, index = 11
D:\HOME\temp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: readlinecallbacktest.py
Type: text/x-python
Size: 4549 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20070503/b6e9dfaa/attachment.py>
More information about the IPython-dev
mailing list