We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59c30dd commit b099600Copy full SHA for b099600
2 files changed
src/PyCode.jl
@@ -34,3 +34,13 @@ pyptr(co::PyCode) = begin
34
ptr
35
end
36
Base.unsafe_convert(::Type{CPyPtr}, x::PyCode) = checknull(pyptr(x))
37
+Base.show(io::IO, x::PyCode) = begin
38
+ show(io, typeof(x))
39
+ print(io, "(")
40
+ show(io, x.code)
41
+ print(io, ", ")
42
+ show(io, x.filename)
43
44
+ show(io, x.mode)
45
+ print(io, ")")
46
+end
src/PyInternedString.jl
@@ -27,6 +27,12 @@ pyptr(x::PyInternedString) = begin
27
28
29
Base.unsafe_convert(::Type{CPyPtr}, x::PyInternedString) = checknull(pyptr(x))
30
+Base.show(io::IO, x::PyInternedString) = begin
31
32
+ print(io, '(')
33
+ show(io, x.val)
+ print(io, ')')
"""
pystr"..." :: PyInternedString
0 commit comments