rlcompleter2.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:pyshell 作者: oglops 项目源码 文件源码
def setup_readline_history(histfn):
    import readline 
    try:
        readline.read_history_file(histfn)
    except IOError:
        # guess it doesn't exist 
        pass

    def save():
        try:
            readline.write_history_file(histfn)
        except IOError:
            print ("bad luck, couldn't save readline history to %s" % histfn)

    import atexit
    atexit.register(save)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号