class RubyPython::PyEnumerable
An object representing a Python
enumerable object.
Public Instance Methods
each() { |next| ... }
click to toggle source
# File lib/rubypython/rubypyproxy.rb, line 317 def each iter = self.__iter__ loop do begin yield iter.next rescue RubyPython::PythonError => exc return if exc.message =~ /StopIteration/ end end end