Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(10627)

Unified Diff: Doc/library/readline.rst

Issue 12833: raw_input misbehaves when readline is imported
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/readline.rst Thu Jun 05 15:32:34 2014 -0400
+++ b/Doc/library/readline.rst Sat Jun 07 12:12:29 2014 -0700
@@ -14,6 +14,19 @@
interactive prompt and the prompts offered by the built-in :func:`input`
function.
+.. caution::
+
+ The following will result in deletion of the 'Hello' when a backspace is typed.::
+
+ import sys, readline
+ sys.stdout.write('Hello ')
+ input()
+
+ It is recommended to directly use the :func:`input` function.::
+
+ import readline
+ input('Hello ')
+
.. note::
On MacOS X the :mod:`readline` module can be implemented using
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+