You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
File "x.sage.py", line 7
__tmp__=var("x"); fx = symbolic_expression(piecewise([[(-_sage_const_1 ,_sage_const_2 ),_sage_const_2 *x+_sage_const_4 ], * BackslashOperator() * ).function(x)
^
SyntaxError: invalid syntax
while I can just copy the code and paste in the sage shell, it works of course.
but for the script, I have no way to make it work, the preparser only deal with a single line and don't know the line continue mark.
And I'm extremely wondering why the script doesn't work like just paste the content line by line to the sage shell, it's called sage script but it doesn't works like a script.
This can be done just by parsing the original line to the sage shell, which also makes it for sure that the script works really like a script.
The text was updated successfully, but these errors were encountered:
SageMath version 7.6
for example, I have this in file x.sage:
but sage x.sage send error like this
while I can just copy the code and paste in the sage shell, it works of course.
but for the script, I have no way to make it work, the preparser only deal with a single line and don't know the line continue mark.
And I'm extremely wondering why the script doesn't work like just paste the content line by line to the sage shell, it's called sage script but it doesn't works like a script.
This can be done just by parsing the original line to the sage shell, which also makes it for sure that the script works really like a script.
The text was updated successfully, but these errors were encountered: