how to disable pypy assert statement?
1 2 3 4 5 6 7 8 9 10 11 | $ ./pypy -O Python 2.7.2 (a3e1b12d1d01, Dec 04 2012, 13:33:26) [PyPy 1.9.1-dev0 with GCC 4.6.3] on linux2 Type"help","copyright","credits" or"license" for more information. And now for something completely different: `` amd64 and ppc are only available in enterprise version'' >>>> assert 1==2 Traceback (most recent call last): File"", line 1, in AssertionError >>>> |
但当我执行
1 2 3 4 5 6 | $ python -O Python 2.7.3 (default, Aug 1 2012, 05:14:39) [GCC 4.6.3] on linux2 Type"help","copyright","credits" or"license" for more information. >>> assert 1==2 >>> |
号
Pypy确实默默地忽略了-o。其背后的理由是我们相信-o改变语义是严重破坏的,但是,我猜这是非法的。随时发布一个bug(这也是此类报告所属的地方,在bug s.pypy.org上)