Sha256: b80246e22c2d06e741617ac38f88004a0501962a4ede7f237cf411cfe619d138
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module PyCall module Types def self.pyisinstance(pyobj, pytype) check_pyobject(pyobj) pyobj_ptr = pyobj # TODO: fix after introducing PyObject class LibPython.PyObject_IsInstance(pyobj_ptr, 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.20170224b | lib/pycall/types.rb |
pycall-0.1.0.alpha.20170224 | lib/pycall/types.rb |