__init__.py 文件源码

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

项目:pipless 作者: d0c-s4vage 项目源码 文件源码
def _run_interactive_shell():
    """Run an interactive shell as if it were the first thing being
    run.
    """
    builtins = __builtins__
    code_ = code

    import __main__
    __main__.__dict__.clear()
    __main__.__dict__.update(dict(
        __name__     = "__main__",

        # normal interactive shell leaves this undefined
        # __file__     = None,

        __builtins__ = builtins
    ))

    code_.interact()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号