PyReadline (version 2.1) is a Python implementation of GNU readline functionality, primarily designed for Windows, to provide enhanced command-line editing features like history and tab completion. The project's last release was in 2015, and it is largely unmaintained. For users on Python 3.8 and newer, the community-maintained fork `pyreadline3` is the recommended alternative for compatible functionality.
pip install pyreadlineVerified import paths — ran on the pinned version, not inferred.
PyReadline primarily enhances the standard Python interactive prompt and the `input()` function on Windows. After installation, its features are generally active without explicit imports, though `import readline` will expose its API. This example demonstrates basic input and checks a `readline` function, noting potential compatibility issues with older versions.
Migrate to `pyreadline3` (`pip install pyreadline3`) for Python 3.8+ compatibility, or use an older Python version.
For active development and compatibility with modern Python, use `pyreadline3`.
Consider switching to `pyreadline3` which addresses this, or manually patch `Lib/site-packages/pyreadline/py3k_compat.py` to use `collections.abc.Callable`.
Only install `pyreadline` on Windows. On other operating systems, rely on the system's native readline implementation or use cross-platform alternatives like `prompt_toolkit`.
Install `pyreadline` (for older Python) or `pyreadline3` (for Python 3.8+) on Windows: `pip install pyreadline` or `pip install pyreadline3`.
Ensure `pyreadline` is fully installed and try restarting the Python environment. If the issue persists, consider `pyreadline3` which might have better compatibility, or review specific usage patterns for `readline` features.
Upgrade to `pyreadline3`, which is designed for newer Python versions, or manually edit the `pyreadline` source to replace `collections.Callable` with `collections.abc.Callable`.
No resource links recorded.