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
The Sage preparser stupidly doesn't raise an error when the input is vector(v)[3] = 5. Instead
it does something very confusing. This was found by Franco Saliola.
----------------------------------------------------------------------
| Sage Version 4.0.1.rc1, Release Date: 2009-06-04 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: 'vector(v)[Integer(3)] = Integer(5)'
'vector(v)[Integer(3)] = Integer(5)'
sage: sage: foo(x,y)hithere fred wuz up?! how is going = x+y
------------------------------------------------------------
File "<ipython console>", line 1
foo(x,y)hithere fred wuz up?! how is going = x+y
^
SyntaxError: invalid syntax
The Sage preparser stupidly doesn't raise an error when the input is
vector(v)[3] = 5
. Insteadit does something very confusing. This was found by Franco Saliola.
CC: @robertwb @boothby
Component: misc
Issue created by migration from https://trac.sagemath.org/ticket/3846
The text was updated successfully, but these errors were encountered: