public override bool Equals(object obj) { var asTuple = obj as PyTuple; if (asTuple == null) { return(false); } else { return(PyTupleClass.__eq__(this, asTuple).InternalValue); } }
public static object __next__(PyObject self) { var asIterator = self as PyTupleIterator; if (asIterator.CurrentIdx >= asIterator.IteratedTuple.Values.Length) { throw new StopIterationException(); } else { asIterator.CurrentIdx += 1; return(PyTupleClass.__getitem__(asIterator.IteratedTuple, asIterator.CurrentIdx - 1)); } }