mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
revert r69777 since all the experts agree that extra import lines distract from the code
This commit is contained in:
parent
5149742e8b
commit
a7b55a33f8
31 changed files with 42 additions and 96 deletions
|
@ -99,8 +99,7 @@ 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 readline
|
||||
import rlcompleter
|
||||
import rlcompleter, readline
|
||||
readline.parse_and_bind('tab: complete')
|
||||
|
||||
This binds the :kbd:`Tab` key to the completion function, so hitting the
|
||||
|
|
|
@ -170,8 +170,7 @@ 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
|
||||
import zipfile
|
||||
import threading, zipfile
|
||||
|
||||
class AsyncZip(threading.Thread):
|
||||
def __init__(self, infile, outfile):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue