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

非debug用途的assert使用 #11

Open
RTNelo opened this issue Oct 15, 2015 · 0 comments
Open

非debug用途的assert使用 #11

RTNelo opened this issue Oct 15, 2015 · 0 comments

Comments

@RTNelo
Copy link

RTNelo commented Oct 15, 2015

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant