Equivalence to Python -O flag ?

42 views
Skip to first unread message

tvn

unread,
Dec 30, 2015, 9:57:42 AM12/30/15
to sage-support
Hi, is there in Sage that's equivalent to running python with the flag -O, i.e., python -O,  sets the __debug__ variable to 1 and remove all assertion code ?  I've tried sage -O and also look at sage -h but can't seem to find something like that.  
Thanks, 

 

tvn

unread,
Jan 8, 2016, 10:35:45 AM1/8/16
to sage-support
Is there no solution or suggestion to achieve this ?  How do you set the __debug__ variable to 1 (i.e., equivalent to running Python with -O)  ?  

Volker Braun

unread,
Jan 8, 2016, 2:23:27 PM1/8/16
to sage-support
PYTHONOPTIMIZE=1 sage
Reply all
Reply to author
Forward
0 new messages