Sha256: afd8b67b4491157bde35807244cb2f9afbc5c8f7ec990212fdebe2c643b92a10
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
module PyCall module Utils def int(pyobj) @int ||= PyCall.eval('int') @int.(pyobj) end def len(pyobj) @len ||= PyCall.eval('len') @len.(pyobj) end def slice(*args) Slice.new(*args) end def str(pyobj) @str ||= PyCall.eval('str') @str.(pyobj) end def tuple(*args) PyCall::Tuple[*args] end def type(pyobj) @type ||= PyCall.eval('type') @type.(pyobj) end end extend Utils end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pycall-0.1.0.alpha.20170224 | lib/pycall/utils.rb |