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