Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pyobject: added IsNone()
  • Loading branch information
henon committed May 22, 2019
commit fd882900f3c4867947dcf78569f3526a60a679f6
4 changes: 4 additions & 0 deletions src/runtime/pyobject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@ public bool IsTrue()
return Runtime.PyObject_IsTrue(obj) != 0;
}

/// <summary>
/// Return true if the object is None
/// </summary>
public bool IsNone() => CheckNone(this) == null;

/// <summary>
/// Dir Method
Expand Down