You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can always calls val.to_py_object(py).into_py_object() in order to obtain PyObject (the second into_py_object() call via the PythonObject trait corresponds to the upcast from PyList to PyObject).
But this doesn't seem to be the case for PyString, for which the ToPyObject impl targets itself, making the into_py_object call a noop.
The text was updated successfully, but these errors were encountered:
You should be able to use into_object() to convert a PyString to a PyObject. (into_py_object() just converts to the downcasted type, which is already PyString).
ToPyObject indicates that:
But this doesn't seem to be the case for
PyString
, for which theToPyObject
impl targets itself, making theinto_py_object
call a noop.The text was updated successfully, but these errors were encountered: