summaryrefslogtreecommitdiffstats
path: root/Objects/clinic
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-06-04 16:51:05 (GMT)
committerGitHub <noreply@github.com>2021-06-04 16:51:05 (GMT)
commit17c4edc4e0692fe55e185755ea8a2f5238f3ef08 (patch)
tree563807f4bbdebbf89b2065e4807cc291c44be2b1 /Objects/clinic
parenta46c220edc5cf716d0b71eb80ac29ecdb4ebb430 (diff)
downloadcpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.zip
cpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.tar.gz
cpython-17c4edc4e0692fe55e185755ea8a2f5238f3ef08.tar.bz2
bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f and b2bf2bc1ece673d387341e06c8d3c2bc6e259747 (GH-26530)
* Revert "bpo-43693: Compute deref offsets in compiler (gh-25152)" This reverts commit b2bf2bc1ece673d387341e06c8d3c2bc6e259747. * Revert "bpo-43693: Add new internal code objects fields: co_fastlocalnames and co_fastlocalkinds. (gh-26388)" This reverts commit 2c1e2583fdc4db6b43d163239ea42b0e8394171f. These two commits are breaking the refleak buildbots.
Diffstat (limited to 'Objects/clinic')
-rw-r--r--Objects/clinic/codeobject.c.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/Objects/clinic/codeobject.c.h b/Objects/clinic/codeobject.c.h
index c1ad09c..7ffdf07 100644
--- a/Objects/clinic/codeobject.c.h
+++ b/Objects/clinic/codeobject.c.h
@@ -373,41 +373,4 @@ skip_optional_kwonly:
exit:
return return_value;
}
-
-PyDoc_STRVAR(code__varname_from_oparg__doc__,
-"_varname_from_oparg($self, /, oparg)\n"
-"--\n"
-"\n"
-"(internal-only) Return the local variable name for the given oparg.\n"
-"\n"
-"WARNING: this method is for internal use only and may change or go away.");
-
-#define CODE__VARNAME_FROM_OPARG_METHODDEF \
- {"_varname_from_oparg", (PyCFunction)(void(*)(void))code__varname_from_oparg, METH_FASTCALL|METH_KEYWORDS, code__varname_from_oparg__doc__},
-
-static PyObject *
-code__varname_from_oparg_impl(PyCodeObject *self, int oparg);
-
-static PyObject *
-code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
-{
- PyObject *return_value = NULL;
- static const char * const _keywords[] = {"oparg", NULL};
- static _PyArg_Parser _parser = {NULL, _keywords, "_varname_from_oparg", 0};
- PyObject *argsbuf[1];
- int oparg;
-
- args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
- if (!args) {
- goto exit;
- }
- oparg = _PyLong_AsInt(args[0]);
- if (oparg == -1 && PyErr_Occurred()) {
- goto exit;
- }
- return_value = code__varname_from_oparg_impl(self, oparg);
-
-exit:
- return return_value;
-}
-/*[clinic end generated code: output=ba4c5487e0364ce8 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=a272b22f63ea002e input=a9049054013a1b77]*/