These are handy but they break the general model that a Python int is not a Julia Integer etc.
For example we currently have Py(3) == 3 but hash(Py(3)) != hash(3), which breaks a Julia invariant.
I suspect it might lead to method invalidations too but I don't know.
These are handy but they break the general model that a Python
intis not a JuliaIntegeretc.For example we currently have
Py(3) == 3buthash(Py(3)) != hash(3), which breaks a Julia invariant.I suspect it might lead to method invalidations too but I don't know.