setattr(x, y, e)
x@@y = e
This 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/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Python/doc.m2:624:0.