Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename 'idobj' to 'id' in _interpretersmodule.c
  • Loading branch information
AA-Turner committed Aug 12, 2025
commit 22c956d491ae6b02d750f8fc6b7ebef7d8f06745
13 changes: 6 additions & 7 deletions Modules/_interpretersmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@
/*[clinic end generated code: output=3887e3c350597df5 input=43fd109df8e851f9]*/
{
// Look up the interpreter.
int reqready = 0;

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 923 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "destroy");
if (interp == NULL) {
Expand Down Expand Up @@ -1045,7 +1045,7 @@
/*[clinic end generated code: output=494c8fc4be971936 input=4235567e63091172]*/
{
// Look up the interpreter.
int reqready = 1;

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1048 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "update __main__ for");
if (interp == NULL) {
Expand Down Expand Up @@ -1133,7 +1133,7 @@
/*[clinic end generated code: output=1e47a912017ea298 input=0591915eb37dc8ca]*/
{
PyThreadState *tstate = _PyThreadState_GET();
int reqready = 1;

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1136 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "exec code for");
if (interp == NULL) {
Expand Down Expand Up @@ -1180,7 +1180,7 @@
{
#define FUNCNAME MODULE_NAME_STR ".run_string"
PyThreadState *tstate = _PyThreadState_GET();
int reqready = 1;

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1183 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "run a string in");
if (interp == NULL) {
Expand Down Expand Up @@ -1233,7 +1233,7 @@
{
#define FUNCNAME MODULE_NAME_STR ".run_func"
PyThreadState *tstate = _PyThreadState_GET();
int reqready = 1;

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1236 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "run a function in");
if (interp == NULL) {
Expand Down Expand Up @@ -1294,7 +1294,7 @@
/*[clinic end generated code: output=e04c697326e0f482 input=858caec5becc34ed]*/
{
PyThreadState *tstate = _PyThreadState_GET();
int reqready = 1;

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1297 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "make a call in");
if (interp == NULL) {
Expand Down Expand Up @@ -1360,7 +1360,7 @@
_interpreters_is_running_impl(PyObject *module, PyObject *id, int restrict)
/*[clinic end generated code: output=807f93da48f682cd input=ab3e5e07a870d506]*/
{
int reqready = 1;

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1363 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "check if running for");
if (interp == NULL) {
Expand All @@ -1376,25 +1376,24 @@

/*[clinic input]
_interpreters.get_config
id as idobj: object
id: object
*
restrict: bool = False

Return a representation of the config used to initialize the interpreter.
[clinic start generated code]*/

static PyObject *
_interpreters_get_config_impl(PyObject *module, PyObject *idobj,
int restrict)
/*[clinic end generated code: output=eb69d3a5cafb6b17 input=57c06ac75061acf0]*/
_interpreters_get_config_impl(PyObject *module, PyObject *id, int restrict)
/*[clinic end generated code: output=b739277cc30cf365 input=d268b92b96b0712b]*/
{
if (idobj == Py_None) {
idobj = NULL;
if (id == Py_None) {
id = NULL;
}

int reqready = 0;

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1394 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(idobj, restrict, reqready, "get the config of");
resolve_interp(id, restrict, reqready, "get the config of");
if (interp == NULL) {
return NULL;
}
Expand Down Expand Up @@ -1449,7 +1448,7 @@
int restrict)
/*[clinic end generated code: output=07ac7d417e19ea14 input=d83785796c100d14]*/
{
int reqready = 1;

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1451 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "incref");
if (interp == NULL) {
Expand Down Expand Up @@ -1478,7 +1477,7 @@
_interpreters_decref_impl(PyObject *module, PyObject *id, int restrict)
/*[clinic end generated code: output=1b9b5a4b9f16b914 input=3eb5e65dffddffe3]*/
{
int reqready = 1;

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (bolt) / build and test (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Cross build Linux

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Ubuntu (free-threading) / build and test (ubuntu-24.04-arm)

unused variable ‘reqready’ [-Wunused-variable]

Check warning on line 1480 in Modules/_interpretersmodule.c

View workflow job for this annotation

GitHub Actions / Address sanitizer (ubuntu-24.04)

unused variable ‘reqready’ [-Wunused-variable]
PyInterpreterState *interp = \
resolve_interp(id, restrict, reqready, "decref");
if (interp == NULL) {
Expand Down
11 changes: 5 additions & 6 deletions Modules/clinic/_interpretersmodule.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading