Example #1
0
 /// <summary>
 /// Stores an attribute in the instance dict for future lookups.
 /// </summary>
 private void StoreAttribute(string name, ManagedType ob)
 {
     if (Runtime.PyDict_SetItemString(dict, name, ob.pyHandle) != 0)
     {
         throw new PythonException();
     }
     ob.IncrRefCount();
     cache[name] = ob;
 }