mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Clinic: fix "self converters" with METH_NOARGS functions.
This commit is contained in:
parent
2f9a9aaf21
commit
dc6aaec9e3
2 changed files with 47 additions and 42 deletions
|
@ -403,7 +403,7 @@ PyDoc_STRVAR({c_basename}__doc__,
|
|||
def meth_noargs_pyobject_template(self, methoddef_flags=""):
|
||||
return self.template_base("METH_NOARGS", methoddef_flags) + """
|
||||
static PyObject *
|
||||
{c_basename}({self_type}{self_name})
|
||||
{c_basename}({impl_parameters})
|
||||
"""
|
||||
|
||||
def meth_noargs_template(self, methoddef_flags=""):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue