public override bool Equals(PyObject other) { if (other == null) { return(false); } if (other is PyList) { PyList tup = other as PyList; if (tup.items.Count != items.Count) { return(false); } for (int i = 0; i < items.Count; i++) { if (tup.items[i] != items[i]) { return(false); } } return(true); } return(false); }
public PyList(PyList dict) { items = new List <PyObject>(dict.items); }