x@@yGet an attribute of a Python object. In Python, the . operator is used. However, this operator has a special meaning in Macaulay2 and cannot be overloaded. Since @@ has similar precedence, it is used instead.
|
|
Note that toString is called on y before it is used. Therefore, symbols and functions may be used as well as strings. Sometimes, however, it is necessary to use quotes, e.g., when using special "dunder" methods with double underscores. These would result in a Macaulay2 syntax error if left unquoted.
|
The source of this document is in Python/doc.m2:576:0.