py_tpgetmagic method

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

Get the magic method from the given type only. The returned reference is always valid. However, its value may be nil.

Implementation

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