Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a102ae3

Browse files
committed
#10034: import readline in longer example.
1 parent b441554 commit a102ae3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Doc/library/readline.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ normally be executed automatically during interactive sessions from the user's
195195
:envvar:`PYTHONSTARTUP` file. ::
196196

197197
import os
198+
import readline
198199
histfile = os.path.join(os.environ["HOME"], ".pyhist")
199200
try:
200201
readline.read_history_file(histfile)

0 commit comments

Comments
 (0)