[New-bugs-announce] [issue13501] Make libedit support more generic; port readline / libedit to FreeBSD
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)
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>
More information about the New-bugs-announce