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
3434 ptr
3535end
3636Base. 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
2727 ptr
2828end
2929Base. 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
3036
3137"""
3238 pystr"..." :: PyInternedString
You can’t perform that action at this time.
0 commit comments