setitem(x, y, e)
x_y = e
You may set elements of mutable python sequences using setitem or the shortcut _. This is equivalent to square brackets ([]) in Python. For example, this works for lists.
|
|
|
It also works for dictionaries.
|
|
|
The object setitem is a method function.
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Python/doc.m2:193:0.