[Ironpython-users] raw_input and readline support in ironpython
Pawel Jasinski
pawel.jasinski at gmail.com
Sun Jun 24 20:10:07 CEST 2012
hi,
the documentation of raw_input says:
"If the readline module was loaded, then raw_input() will use it to
provide elaborate line editing and history features."
Which translates to calling raw_input equivalent inside readline module.
In case of cpython readline is built-in and there is no public
interface for it.
Readline knows about and has direct access to the internals of python
and swaps the raw_input implementation.
In case of ironpython it is different.
Readline is an external module.
It used to work by tinkering with console internal state.
This was done in 1.x days, required patching of ironpython code and is
broken now.
I would like to fix it.
So far I have modified raw_input to check if readliine was loaded and
call internal things of the readline module.
It appears to work but is there a better way?
Cheers,
Pawel
More information about the Ironpython-users
mailing list