setattr(x, y, e)x@@y = eThis is equivalent to the Python setattr function. Note that e is converted to a Python object using toPython.
|
|
|
As with getattr, when using the shortcut @@, y need not be a string.
|
|
The object setattr is a method function.
The source of this document is in /build/macaulay2-DehBdI/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Python/doc.m2:624:0.