py_tpgetmagic method

py_GlobalRef py_tpgetmagic(
  1. int type,
  2. py_Name name
)

Get the magic method from the given type only. Return nil if not found.

Implementation

py_GlobalRef py_tpgetmagic(
  int type,
  py_Name name,
) {
  return _py_tpgetmagic(
    type,
    name,
  );
}