Im at the moment utilizing the PythonKit SPM Bundle to work together with Python, I am doing this resulting from a Algorithm that was written in Python is required by my iOS App to work accurately.
Base on the PythonKit Library I am attempting to Evaluate two PythonObjects utilizing the ‘==’ Operator, Swift Compiler complains that ‘==’ is Ambiguous. I’ve tried digging into the library to discover a equals perform as a substitute of utilizing the ‘==’ Operator, however to no avail.
The Library has an overridden ‘==’ Operator outlined like so
public static func == (lhs: PythonObject, rhs: PythonObject) -> Bool {
return lhs.in contrast(to: rhs, byOp: Py_EQ)
}
However this operator is outlined twice inside the library and I’ve a sense for this reason I am getting the Operator ‘==’ is Ambiguous.
Has anybody else run into this difficulty or know of any attainable fixes for this downside?