lib/pycall/tuple.rb in pycall-0.1.0.alpha.20170711 vs lib/pycall/tuple.rb in pycall-1.0.0

- old
+ new

@@ -36,16 +36,10 @@ value = Conversions.from_ruby(value) LibPython.PyTuple_SetItem(__pyobj__, index, value) end def to_a - [].tap do |ary| - i, n = 0, length - while i < n - ary << self[i] - i += 1 - end - end + Array.new(length) {|i| self[i] } end alias to_ary to_a end end