Skip to content

Commit 2bceb13

Browse files
committed
fixup! fixup! Add function of passing an arbitrary .NET object as the value of an attribute of PyObject by dynamic type
1 parent a7628ac commit 2bceb13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/runtime/pyobject.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public bool HasAttr(PyObject name)
181181
{
182182
return Runtime.PyObject_HasAttr(obj, name.obj) != 0;
183183
}
184-
184+
185185

186186
/// <summary>
187187
/// GetAttr Method
@@ -274,7 +274,7 @@ public void SetAttr(string name, PyObject value)
274274
throw new PythonException();
275275
}
276276
}
277-
277+
278278

279279
/// <summary>
280280
/// SetAttr Method
@@ -887,6 +887,7 @@ public override int GetHashCode()
887887
return Runtime.PyObject_Hash(obj).ToInt32();
888888
}
889889

890+
890891
/// <summary>
891892
/// ToObject Method
892893
/// </summary>

0 commit comments

Comments
 (0)