Sha256: b03388299c405525c1996d71dc9603c4a0457b1603abb2cd8f53559de2257f40
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
module PyCall module Types def self.pyisinstance(pyobj, pytype) check_pyobject(pyobj) pytype = PyObject.new(pytype.to_ptr) if pytype.kind_of?(PyTypeObject) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pycall-0.1.0.alpha.20170307 | lib/pycall/types.rb |
pycall-0.1.0.alpha.20170302 | lib/pycall/types.rb |
pycall-0.1.0.alpha.20170226 | lib/pycall/types.rb |