x and yPerform the logical conjunction ("and") operation on Python objects.
|
If one of the arguments is a Macaulay2 object, then it is first converted to a Python object.
|
|
Unlike Macaulay2, Python supports using and with non-boolean objects. In this case, the first argument is returned if it is "falsy". Otherwise, the second argument is returned.
|
|
In Python, when the first argument is falsy, then is is returned immediately without evaluating the second argument. This is known as "short-circuiting". However, in Macaulay2, both arguments are evaluated before the Python conjunction method is called.
|
|
However, if the first argument is the Macaulay2 false object, then short-cicuiting will occur.
|
The source of this document is in Python/doc/logical.m2:56:0.