mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
#10034: import readline in longer example.
This commit is contained in:
parent
b441554835
commit
a102ae3426
@ -195,6 +195,7 @@ normally be executed automatically during interactive sessions from the user's
|
||||
:envvar:`PYTHONSTARTUP` file. ::
|
||||
|
||||
import os
|
||||
import readline
|
||||
histfile = os.path.join(os.environ["HOME"], ".pyhist")
|
||||
try:
|
||||
readline.read_history_file(histfile)
|
||||
|
Loading…
Reference in New Issue
Block a user