File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,13 @@ pyptr(co::PyCode) = begin
34
34
ptr
35
35
end
36
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
+ print (io, " , " )
44
+ show (io, x. mode)
45
+ print (io, " )" )
46
+ end
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ pyptr(x::PyInternedString) = begin
27
27
ptr
28
28
end
29
29
Base. unsafe_convert (:: Type{CPyPtr} , x:: PyInternedString ) = checknull (pyptr (x))
30
+ Base. show (io:: IO , x:: PyInternedString ) = begin
31
+ show (io, typeof (x))
32
+ print (io, ' (' )
33
+ show (io, x. val)
34
+ print (io, ' )' )
35
+ end
30
36
31
37
"""
32
38
pystr"..." :: PyInternedString
You can’t perform that action at this time.
0 commit comments