示例#1
0
 /// <summary>
 /// SetItem Method
 /// </summary>
 /// <remarks>
 /// For objects that support the Python sequence or mapping protocols,
 /// set the item at the given numeric index to the given value. This
 /// method raises a PythonException if the set operation fails.
 /// </remarks>
 public virtual void SetItem(int index, PyObject value)
 {
     using (var pyindex = new PyInt(index)) {
         SetItem(pyindex, value);
     }
 }
示例#2
0
 /// <summary>
 /// DelItem Method
 /// </summary>
 /// <remarks>
 /// For objects that support the Python sequence or mapping protocols,
 /// delete the item at the given numeric index. This method raises a
 /// PythonException if the delete operation fails.
 /// </remarks>
 public virtual void DelItem(int index)
 {
     using (var pyindex = new PyInt(index)) {
         DelItem(pyindex);
     }
 }
示例#3
0
 /// <summary>
 /// GetItem Method
 /// </summary>
 /// <remarks>
 /// For objects that support the Python sequence or mapping protocols,
 /// return the item at the given numeric index. This method raises a
 /// PythonException if the indexing operation fails.
 /// </remarks>
 public virtual PyObject GetItem(int index)
 {
     using (var key = new PyInt(index)) {
         return(GetItem(key));
     }
 }