@@ -524,8 +524,8 @@ definition with the same method name.
524524 Get the function's flags on *func * as they were passed to
525525 :c:member: `~PyMethodDef.ml_flags `.
526526
527- If *func * is not a C function object, this fails with a
528- :class: ` SystemError `.
527+ If *func * is not a C function object, this fails with an exception.
528+ * func * must not be `` NULL ` `.
529529
530530 This function returns the function's flags on success, and ``-1 `` with an
531531 exception set on failure.
@@ -542,8 +542,8 @@ definition with the same method name.
542542 Get the function pointer on *func * as it was passed to
543543 :c:member: `~PyMethodDef.ml_meth `.
544544
545- If *func * is not a C function object, this fails with a
546- :class: ` SystemError `.
545+ If *func * is not a C function object, this fails with an exception.
546+ * func * must not be `` NULL ` `.
547547
548548 This function returns the function pointer on success, and ``NULL `` with an
549549 exception set on failure.
@@ -563,8 +563,8 @@ definition with the same method name.
563563 created through a :c:type: `PyMethodDef ` on a :c:type: `PyModuleDef `, this
564564 is the resulting module object.
565565
566- If *func * is not a C function object, this fails with a
567- :class: ` SystemError `.
566+ If *func * is not a C function object, this fails with an exception.
567+ * func * must not be `` NULL ` `.
568568
569569 This function returns a :term: `borrowed reference ` to the "self" object
570570 on success, and ``NULL `` with an exception set on failure.
0 commit comments