Sha256: d65dc0b9b68b29d54e2ec35a591c38fcef2a9a4a8b23724c7a3d6c38594c116c

Contents?: true

Size: 384 Bytes

Versions: 10

Compression:

Stored size: 384 Bytes

Contents

module PyCall
  private_class_method def self.__initialize_pycall__
    initialized = (0 != PyCall::LibPython.Py_IsInitialized())
    return if initialized

    PyCall::LibPython.Py_InitializeEx(0)

    @builtin = LibPython.PyImport_ImportModule(PYTHON_VERSION < '3.0.0' ? '__builtin__' : 'builtins')
  end

  class << self
    attr_reader :builtin
  end

  __initialize_pycall__
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pycall-0.1.0.alpha.20170329 lib/pycall/init.rb
pycall-0.1.0.alpha.20170317 lib/pycall/init.rb
pycall-0.1.0.alpha.20170311 lib/pycall/init.rb
pycall-0.1.0.alpha.20170309 lib/pycall/init.rb
pycall-0.1.0.alpha.20170308 lib/pycall/init.rb
pycall-0.1.0.alpha.20170307 lib/pycall/init.rb
pycall-0.1.0.alpha.20170302 lib/pycall/init.rb
pycall-0.1.0.alpha.20170226 lib/pycall/init.rb
pycall-0.1.0.alpha.20170224b lib/pycall/init.rb
pycall-0.1.0.alpha.20170224 lib/pycall/init.rb