Python.Runtime.PyObject.DelAttr C# (CSharp) Метод

DelAttr() публичный Метод

DelAttr Method
Delete the named attribute of the Python object, where name is a PyObject wrapping a Python string or unicode object. This method throws a PythonException if the attribute set fails.
public DelAttr ( PyObject name ) : void
name PyObject
Результат void
        public void DelAttr(PyObject name)
        {
            int r = Runtime.PyObject_SetAttr(obj, name.obj, IntPtr.Zero);
            if (r < 0)
            {
                throw new PythonException();
            }
        }

Same methods

PyObject::DelAttr ( string name ) : void