Skip to main content

Stand-alone readline module

WARNING: THIS PACKAGE IS DEPRECATED! It has been renamed to GNUREADLINE to resolve a name clash with the standard library module. The new PyPI page is here.

Some platforms, such as Mac OS X, do not ship with GNU readline installed. The readline extension module in the standard library of Mac “system” Python uses NetBSD’s editline (libedit) library instead, which is a readline replacement with a less restrictive software license.

As the alternatives to GNU readline do not have fully equivalent functionality, it is useful to add proper readline support to these platforms. This module achieves this by bundling the standard Python readline module with the GNU readline source code, which is compiled and statically linked to it. The end result is a package which is simple to install and requires no extra shared libraries.

The module can be used with both Python 2.x and 3.x, and has been tested with Python versions 2.5, 2.6, 2.7 and 3.1. The major and minor numbers of the module version reflect the version of the underlying GNU readline library, while the third (patch) number distinguishes different module updates based on the same readline library.

This module is usually unnecessary on Linux and other Unix systems with default readline support. An exception is if you have a Python distribution that does not include GNU readline due to licensing restrictions (such as ActiveState’s ActivePython). If you are using Windows, which also ships without GNU readline, you might want to consider using the pyreadline module instead, which is a readline replacement written in pure Python that interacts with the Windows clipboard.

The latest development version is available from the GitHub repository.

History

6.2.4.1 (2012-10-22)

  • #21: Fixed building on Python.org 3.3 / Mac OS 10.8

  • FINAL VERSION, NO MORE UPDATES - switch to gnureadline

6.2.4 (2012-10-17)

  • #15: Improved detection of compilers before Xcode 4.3

  • Uses Python 3.x readline.c from v3.3.0 tag (changeset 73997)

  • Updated to build against readline 6.2 (patch-level 4)

6.2.2 (2012-02-24)

  • #14: Fixed compilation with Xcode 4.3 on Mac OS 10.7

  • Updated to build against readline 6.2 (patch-level 2)

6.2.1 (2011-08-31)

  • #10: Fixed ‘_emacs_meta_keymap’ missing symbol on Mac OS 10.7

  • #7: Fixed SDK version check to work with Mac OS 10.7 and later

  • Uses Python 2.x readline.c from release27-maint branch (r87358)

  • Uses Python 3.x readline.c from release32-maint branch (r88446)

6.2.0 (2011-06-02)

  • #5: Removed ‘-arch ppc’ on Mac OS 10.6, as Snow Leopard supports Intel only

  • Updated to build against readline 6.2 (patch-level 1)

6.1.0 (2010-09-20)

  • Changed version number to reflect readline version instead of Python version

  • #4: Updated to build against readline 6.1 (patch-level 2)

  • #2: Python 3 support

  • Uses Python 2.x readline.c from release27-maint branch (r83672)

  • Uses Python 3.x readline.c from r32a2 tag (r84541)

  • Source code moved to GitHub

  • Additional maintainer: Sridhar Ratnakumar

2.6.4 (2009-11-26)

  • Added -fPIC to compiler flags to fix linking error on 64-bit Ubuntu

  • Enabled all readline functionality specified in pyconfig.h macros

  • Uses readline.c from Python svn trunk (r75725), which followed 2.6.4 release

  • Patched readline.c to replace Py_XDECREF calls with the safer Py_CLEAR

  • Fixed compilation error on Mac OS 10.4 with XCode older than version 2.4

2.6.1 (2009-11-18)

  • Updated package to work with Mac OS 10.6 (Snow Leopard), which ships with Python 2.6.1

  • Uses readline.c from Python 2.6.1 release

  • Backported “spurious trailing space” bugfix from Python svn trunk (see e.g. https://bugs.launchpad.net/python/+bug/470824 for details on bug)

  • Updated to build against readline 6.0 (patch-level 4)

  • Now builds successfully on Linux (removed Mac-specific flags in this case), and still supports Mac OS 10.4 and 10.5

2.5.1 (2008-05-28)

  • Updated package to work with Mac OS 10.5 (Leopard), which ships with Python 2.5.1

  • Uses readline.c from Python 2.5.1 release

  • Updated to build against readline 5.2 (patch-level 12)

  • New maintainer: Ludwig Schwardt

2.4.2 (2005-12-26)

  • Original package by Bob Ippolito, supporting Python 2.3 / 2.4 on Mac OS 10.3 (Panther) and 10.4 (Tiger)

  • Builds against readline 5.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

readline-6.2.4.1.tar.gz (2.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

readline-6.2.4.1-py2.7-macosx-10.7-intel.egg (234.4 kB view details)

Uploaded Egg

readline-6.2.4.1-py2.6-macosx-10.6-universal.egg (216.5 kB view details)

Uploaded Egg

readline-6.2.4.1-py2.5-macosx-10.5-i386.egg (396.1 kB view details)

Uploaded Egg

File details

Details for the file readline-6.2.4.1.tar.gz.

File metadata

  • Download URL: readline-6.2.4.1.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for readline-6.2.4.1.tar.gz
Algorithm Hash digest
SHA256 e00f86e03dfe52e7d1502cec5c64070b32621c85509c0081a4cfa6a0294bd107
MD5 578237939c81fdbc2c8334d168b17907
BLAKE2b-256 f4012cf081af8d880b44939a5f1b446551a7f8d59eae414277fd0c303757ff1b

See more details on using hashes here.

File details

Details for the file readline-6.2.4.1-py2.7-macosx-10.7-intel.egg.

File metadata

File hashes

Hashes for readline-6.2.4.1-py2.7-macosx-10.7-intel.egg
Algorithm Hash digest
SHA256 d91a3294f027fb0d3b124117c550312f45eded265e01c62fd3470c28cda0e346
MD5 6ede61046a61219a6d97c44a75853c23
BLAKE2b-256 6a54acda0bacdaba40672e105153701be5d22809da3029834c53ce06185204f5

See more details on using hashes here.

File details

Details for the file readline-6.2.4.1-py2.6-macosx-10.6-universal.egg.

File metadata

File hashes

Hashes for readline-6.2.4.1-py2.6-macosx-10.6-universal.egg
Algorithm Hash digest
SHA256 c157d3cf5f97794f0153cfc8ca90c9e11f810b8045d4a0acd33046379342f163
MD5 6897c810f897adb8c5cdfadc397fd30f
BLAKE2b-256 fba9271741f4baebd11561b31882cd389bee1bd8682f461f0b6019b58b2742fc

See more details on using hashes here.

File details

Details for the file readline-6.2.4.1-py2.5-macosx-10.5-i386.egg.

File metadata

File hashes

Hashes for readline-6.2.4.1-py2.5-macosx-10.5-i386.egg
Algorithm Hash digest
SHA256 6b34cf7c651791c3017b9cf31c74ef99b9050d14ae55a32898f2eb41787ca00a
MD5 d89aea13fa29c408bb2768737903c0d1
BLAKE2b-256 b4500dfc24969793c3d4869909583b2e7a5a0ab7d8d99a78a754d17999afd091

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page