diff options
author | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-02-19 18:52:21 (GMT) |
---|---|---|
committer | Jeroen Ruigrok van der Werven <asmodai@in-nomine.org> | 2009-02-19 18:52:21 (GMT) |
commit | 5149742e8b3c8221d4cb53dcfc9a12ae3fec9238 (patch) | |
tree | d3b7dbc021eeed177f453603f8f59f0ad01b2e0e /Doc/tutorial | |
parent | a630735b31b5ee0a1a59b3b28299e26a7ee74d9f (diff) | |
download | cpython-5149742e8b3c8221d4cb53dcfc9a12ae3fec9238.zip cpython-5149742e8b3c8221d4cb53dcfc9a12ae3fec9238.tar.gz cpython-5149742e8b3c8221d4cb53dcfc9a12ae3fec9238.tar.bz2 |
Since we recommend one module per import line, reflect this also in the
documentation.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/interactive.rst | 3 | ||||
-rw-r--r-- | Doc/tutorial/stdlib2.rst | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Doc/tutorial/interactive.rst b/Doc/tutorial/interactive.rst index 6a439bd..90981e5 100644 --- a/Doc/tutorial/interactive.rst +++ b/Doc/tutorial/interactive.rst @@ -99,7 +99,8 @@ Automatic completion of variable and module names is optionally available. To enable it in the interpreter's interactive mode, add the following to your startup file: [#]_ :: - import rlcompleter, readline + import readline + import rlcompleter readline.parse_and_bind('tab: complete') This binds the :kbd:`Tab` key to the completion function, so hitting the diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 8faa360..b50a3b9 100644 --- a/Doc/tutorial/stdlib2.rst +++ b/Doc/tutorial/stdlib2.rst @@ -170,7 +170,8 @@ case is running I/O in parallel with computations in another thread. The following code shows how the high level :mod:`threading` module can run tasks in background while the main program continues to run:: - import threading, zipfile + import threading + import zipfile class AsyncZip(threading.Thread): def __init__(self, infile, outfile): |