lib/pycall/conversion.rb in pycall-0.1.0.alpha.20170308 vs lib/pycall/conversion.rb in pycall-0.1.0.alpha.20170309
- old
+ new
@@ -43,9 +43,11 @@
pyobj
end
def self.from_ruby(obj)
case obj
+ when LibPython::PyObjectStruct
+ obj
when PyObject, PyObjectWrapper
obj.__pyobj__
when TrueClass, FalseClass
LibPython.PyBool_FromLong(obj ? 1 : 0)
when Integer