Procs
func `==`(b: bool; self: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
func `and`(b: bool; self: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
func `and`(self: PyBool; b: bool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
func `or`(b: bool; self: PyBool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
func `or`(self: PyBool; b: bool): PyBool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
Converters
converter pybool[T](x: T): PyBool
-
Converts any to PyBool
NOTE: In Nim, "implicit converter chain is not support". (See manual.html). Therefore any type can be implicitly converted to PyBool, not bool, which, however, is desired, as if any is convertible to bool, then there'll be ## compile-error for repr(<list>)
Source Edit