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

- old
+ new

@@ -20,12 +20,14 @@ # Make tuple from array def self.[](*ary) new(ary) end - def length + def size LibPython.PyTuple_Size(__pyobj__) end + + alias length size def [](index) LibPython.PyTuple_GetItem(__pyobj__, index).to_ruby end