Exemple #1
0
 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);
 }
Exemple #2
0
 public PyList(PyList dict)
 {
     items = new List <PyObject>(dict.items);
 }