This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: help() with readline support
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: hdima, jlgijsbers
Priority: normal Keywords: patch

Created on 2003-04-23 12:03 by hdima, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pydoc.diff hdima, 2003-04-23 12:03 Patch to Lib/pydoc.py
Messages (4)
msg43469 - (view) Author: Dmitry Vasiliev (hdima) Date: 2003-04-23 12:03
This is a small patch to the Lib/pydoc.py implementing
command line editing capabilities (and optional
readline support) for the help() builtin.
msg43470 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-15 13:54
Logged In: YES 
user_id=469548

The patch was small, but I've tried to make it even smaller.
Introducing a subclass seemed unnecessary to me, I just used:

if self.input is sys.stdin and self.output is self.stdout:

in getline(). I'll check this in if you don't have any
problems with my patch.
msg43471 - (view) Author: Dmitry Vasiliev (hdima) Date: 2004-08-16 07:25
Logged In: YES 
user_id=388573

Ok, I think it's reasonable compromise for now. :-)
msg43472 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-17 13:24
Logged In: YES 
user_id=469548

Ok, checked in as rev 1.95 of pydoc.py.
History
Date User Action Args
2022-04-10 16:08:17adminsetgithub: 38355
2008-03-17 19:27:33georg.brandllinkissue448736 superseder
2003-04-23 12:03:10hdimacreate