[issue43172] Fix test_readline when compiled using --with-readline=edit

Gregory P. Smith report at bugs.python.org
Mon Feb 8 21:39:22 EST 2021


Gregory P. Smith <greg at krypto.org> added the comment:

examining the behaviors being tested, it seems there are differences in 0 and 1 based indexing behaviors between libreadline and libedit.

libedit frankly seems more consistent.  but the Python readline module docs document the 0 and 1 based quirks as part of the module API.  We may need to adjust for these based on direct libedit use vs libreadline within the module code.

it appears code doing such adjustments already exists on macOS (i haven't yet looked in the module code or if Darwin as a platform does it in their readline shim around libedit).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43172>
_______________________________________


More information about the Python-bugs-list mailing list