py_bool method

int py_bool(
  1. py_Ref val
)

Python equivalent to bool(val). 1: true, 0: false, -1: error

Implementation

int py_bool(
  py_Ref val,
) {
  return _py_bool(
    val,
  );
}