interactive.py 文件源码

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

项目:OpenXMolar 作者: debasishm89 项目源码 文件源码
def save_history(self):
        if self.history_file_full_path is not None:
            global readline
            if readline is None:
                try:
                    import readline
                except ImportError:
                    return
            try:
                readline.write_history_file(self.history_file_full_path)
            except IOError, e:
                warnings.warn("Cannot save history file, reason: %s" % str(e))

#------------------------------------------------------------------------------
# Main loop

    # Debugging loop.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号