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