Skip to content

bug in the sage preparser -- vector(v)[3] = 5 slips by! #3846

@williamstein

Description

@williamstein

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: vector(v)[3] = 5
sage: preparse('vector(v)[3] = 5')
'_=var("v");vector=symbolic_expression(Integer(5)).function(v)'
sage: vector(10)
5

CC: @robertwb @boothby

Component: misc

Issue created by migration from https://trac.sagemath.org/ticket/3846

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions