[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

Ronald Oussoren report at bugs.python.org
Sun Sep 20 16:18:27 CEST 2009


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

Mark: it turns out that GNU readline has a rather odd interface, only 
the index of get_history_item is 1-based, all others are 0-based. This 
is not mentioned in the documentation (neither that of the readline 
module or the GNU documentation).

I've attached a very minimal testcase for the history manipulation 
functions in the readline module that passes with GNU readline.

The tests now also pass using libedit emulation (after fixing the 
compilation issues noted by Zvezdan).

I'll file a new issue about the readline documentation, that's unrelated 
to getting libedit support into the repository.

----------
Added file: http://bugs.python.org/file14938/test_readline.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6877>
_______________________________________


More information about the Python-bugs-list mailing list