cpython/Modules/clinic/symtablemodule.c.h
Serhiy Storchaka 6969eaf468 bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)
the bare METH_FASTCALL be used for functions with positional-only
parameters.
2017-07-03 21:20:15 +03:00

36 lines
1.0 KiB
C

/*[clinic input]
preserve
[clinic start generated code]*/
PyDoc_STRVAR(_symtable_symtable__doc__,
"symtable($module, str, filename, startstr, /)\n"
"--\n"
"\n"
"Return symbol and scope dictionaries used internally by compiler.");
#define _SYMTABLE_SYMTABLE_METHODDEF \
{"symtable", (PyCFunction)_symtable_symtable, METH_FASTCALL, _symtable_symtable__doc__},
static PyObject *
_symtable_symtable_impl(PyObject *module, const char *str,
PyObject *filename, const char *startstr);
static PyObject *
_symtable_symtable(PyObject *module, PyObject **args, Py_ssize_t nargs)
{
PyObject *return_value = NULL;
const char *str;
PyObject *filename;
const char *startstr;
if (!_PyArg_ParseStack(args, nargs, "sO&s:symtable",
&str, PyUnicode_FSDecoder, &filename, &startstr)) {
goto exit;
}
return_value = _symtable_symtable_impl(module, str, filename, startstr);
exit:
return return_value;
}
/*[clinic end generated code: output=ef379e514fde8477 input=a9049054013a1b77]*/