Skip to content

Commit 4c30ff1

Browse files
committed
Add PyObjectWrapper#inspect
1 parent 34a5b91 commit 4c30ff1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/pycall/pyobject_wrapper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ def dup
152152
end
153153
end
154154

155+
def inspect
156+
PyCall.builtins.repr(__pyptr__)
157+
end
158+
155159
def to_s
156160
LibPython::Helpers.str(__pyptr__)
157161
end

0 commit comments

Comments
 (0)