[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

Garrett Cooper report at bugs.python.org
Tue Nov 29 16:19:02 CET 2011


New submission from Garrett Cooper <yanegomi at gmail.com>:

The attached patch enables libedit support in a generic way via configure.in, so I can pass in --with-readline=editline, --with-readline=readline, --with-readline=yes, or --with[out]-readline[=no] and it will do one of the following:

1. Enable editline support.
2. Enable readline support.
3. Enable default OS support (editline on OSX, readline otherwise).
4. Explicitly disable readline support.

Tested functional via cmd.py and with basic poking around via the readline module.

The attached patch was created against the 2.7 branch, but I'll produce a patch against 'trunk' sometime later on this week.

PS. The only quirk I found was the fact that FreeBSD 9's libedit lied when it reports the number of available history items. Hrmmm..

----------
components: Library (Lib)
files: python-port-readline-module-to-libedit-on-freebsd.patch
keywords: patch
messages: 148577
nosy: yaneurabeya
priority: normal
severity: normal
status: open
title: Make libedit support more generic; port readline / libedit to FreeBSD
type: feature request
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file23806/python-port-readline-module-to-libedit-on-freebsd.patch

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


More information about the Python-bugs-list mailing list