Sha256: e7db234ca090cdde15a914bdcc5387ccf03bf8263f2c35f6bfbb89e36541b8dc
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
module PyCall module Types def self.pyisinstance(pyobj, pytype) pyobj = pyobj.__pyobj__ unless pyobj.kind_of? LibPython::PyObjectStruct pytype = ptype.__pyobj__ unless pytype.kind_of? LibPython::PyObjectStruct LibPython.PyObject_IsInstance(pyobj, pytype) == 1 end class << self private def check_pyobject(pyobj) # TODO: Check whether pyobj is PyObject end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pycall-0.1.0.alpha.20170309 | lib/pycall/types.rb |
pycall-0.1.0.alpha.20170308 | lib/pycall/types.rb |