Pythonのお勉強 Part6
■ このスレッドは過去ログ倉庫に格納されています
0041pythonrc
NGNGimport sys
if sys.stdin.isatty():
HISTORYFILE="/home/yusuke/.pythonhistory"
try:
import rlcompleter, readline
readline.parse_and_bind("tab: complete")
readline.parse_and_bind("set input-meta on")
readline.parse_and_bind("set convert-meta off")
readline.parse_and_bind("set output-meta on")
try:
readline.read_history_file(HISTORYFILE)
except IOError:
pass
del rlcompleter, readline
try:
import atexit
atexit.register(lambda: readline.write_history_file(HISTORYFILE))
del atexit
except:
# atexit is not available in Python1.5.
pass
except:
pass
del sys
■ このスレッドは過去ログ倉庫に格納されています