lib/pycall.rb in pycall-1.4.0 vs lib/pycall.rb in pycall-1.4.1
- old
+ new
@@ -3,10 +3,11 @@
require 'pycall/libpython'
require 'pycall/pyerror'
require 'pycall/pyobject_wrapper'
require 'pycall/pytypeobject_wrapper'
require 'pycall/pymodule_wrapper'
+ require 'pycall/iterable_wrapper'
require 'pycall/init'
module_function
def builtins
@@ -69,9 +70,13 @@
false
end
def import_module(name)
LibPython::Helpers.import_module(name)
+ end
+
+ def iterable(obj)
+ IterableWrapper.new(obj)
end
def len(obj)
case obj
when PyObjectWrapper