-
Hello! First of all, thanks for this amazing package - it's saving me headaches! I've got a question concerning how to make Python-types comparisons from Julia: I'm using pymongo via PythonCall for querying a MongoDB instance (Mongoc.jl doesn't work as expected), and when mapping back the query results to a Julia Dict, ObjectIds are left behind (all good, it makes sense). Being the only kind of value that has a "Py" type left in my dictionary, I can simply call 'pystr' + 'pyconvert' for retrieving the ID as a Julia String. What I'd like, is to make a type check before performing this operation, knowing that in Python their type is: Calling pytype on the same object I get: Does anyone encountered a similar problem before? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What's the actual question? There is |
Beta Was this translation helpful? Give feedback.
What's the actual question? There is
pyissubclass
andpyisinstance
which you can use to check types.