PyCall trouble

Yeah PyCall converts any returned Python objects to Julia ones. Presumably a PageObject is a dict-like thing so gets converted to a Dict.

You can do pycall(doc.getPage, PyObject, 2) to keep it as a Python object.

(Aside, there’s also PythonCall which doesn’t do this automatic conversion.)

1 Like