Skip to content
This repository was archived by the owner on Aug 10, 2019. It is now read-only.
This repository was archived by the owner on Aug 10, 2019. It is now read-only.

非debug用途的assert使用 #11

Description

@RTNelo

controller/base.py, Line 70 使用assert来判断用户是否已登陆。但是assert似乎仅用于debug用途,且当前的Python实现下使用-O选项运行后,AssertionError将永远不会发出。

这是否会引发-O模式下运行Minos时发生出人意料的问题?

https://docs.python.org/2/reference/simple_stmts.html#the-assert-statement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions