py_pushmethod method

bool py_pushmethod(
  1. int name
)

Get the unbound method of the object. Assume the object is located at the top of the stack. If return true: [self] -> [unbound, self]. If return false: [self] -> [self] (no change).

Implementation

bool py_pushmethod(
  int name,
) {
  return _py_pushmethod(
    name,
  );
}