Macaulay2 » Documentation
Packages » Python » PythonObject » PythonObject == PythonObject
next | previous | forward | backward | up | index | toc

PythonObject == PythonObject -- equality of Python objects

Description

Determine whether two Python objects are equal.

i1 : toPython 2 == toPython 3

o1 = false

If one of the arguments is a Macaulay2 object, then it is first converted to a Python object before comparing.

i2 : toPython 4 == 4

o2 = true
i3 : 7 == toPython 6

o3 = false

See also

Ways to use this method:


The source of this document is in Python/doc/comparison.m2:67:0.