We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b89ee7 commit 6c6d231Copy full SHA for 6c6d231
src/jlwrap/any.jl
@@ -2,7 +2,8 @@ const pyjlanytype = pynew()
2
3
pyjlany_repr(self) = Py("<jl $(repr(self))>")
4
5
-pyjlany_str(self) = Py(string(self))
+# Note: string(self) doesn't always return a String
6
+pyjlany_str(self) = Py(sprint(print, self))
7
8
function pyjlany_getattr(self, k_::Py)
9
k = Symbol(pyjl_attr_py2jl(pyconvert(String, k_)))
0 commit comments