Python.Runtime.PyObject.Equals C# (CSharp) Метод

Equals() публичный Метод

Equals Method
Return true if this object is equal to the given object. This method is based on Python equality semantics.
public Equals ( object o ) : bool
o object
Результат bool
        public override bool Equals(object o)
        {
            if (!(o is PyObject))
            {
                return false;
            }
            if (obj == ((PyObject)o).obj)
            {
                return true;
            }
            int r = Runtime.PyObject_Compare(obj, ((PyObject)o).obj);
            if (Exceptions.ErrorOccurred())
            {
                throw new PythonException();
            }
            return (r == 0);
        }