Ask Your Question

gerard's profile - activity

2020-04-17 07:51:20 +0200 received badge  Famous Question (source)
2019-11-23 19:10:10 +0200 received badge  Popular Question (source)
2019-11-23 19:10:10 +0200 received badge  Notable Question (source)
2018-04-25 17:54:13 +0200 asked a question How to stop a running script inside a conditional statement?

Hello,

I have a sage script, say prg.sage inside which a conditional statement takes place. I would like the script to stop running if the condition is true after having called load("prg.sage") command, and still be in the sage environment. Pure python would allow me to use sys.exit()... What is the best way to do it the "sage way"?

2018-04-25 17:54:13 +0200 asked a question How to end a running script inside a "if" statement

Hello,

I have a prg.sage script inside which a conditional statement takes place. I would like the script to stop running if the condition is true after having called load("prg.sage") command, and still be in the sage environment. Pure python would allow me to use sys.exit()... What is the best way to do it the "sage way"?