@@ -1426,7 +1426,7 @@ run_in_subinterp_with_config(PyObject *self, PyObject *args, PyObject *kwargs)
1426
1426
int allow_threads = -1 ;
1427
1427
int allow_daemon_threads = -1 ;
1428
1428
int check_multi_interp_extensions = -1 ;
1429
- int own_gil = -1 ;
1429
+ int gil = -1 ;
1430
1430
int r ;
1431
1431
PyThreadState * substate , * mainstate ;
1432
1432
/* only initialise 'cflags.cf_flags' to test backwards compatibility */
@@ -1439,15 +1439,15 @@ run_in_subinterp_with_config(PyObject *self, PyObject *args, PyObject *kwargs)
1439
1439
"allow_threads" ,
1440
1440
"allow_daemon_threads" ,
1441
1441
"check_multi_interp_extensions" ,
1442
- "own_gil " ,
1442
+ "gil " ,
1443
1443
NULL };
1444
1444
if (!PyArg_ParseTupleAndKeywords (args , kwargs ,
1445
- "s$ppppppp :run_in_subinterp_with_config" , kwlist ,
1445
+ "s$ppppppi :run_in_subinterp_with_config" , kwlist ,
1446
1446
& code , & use_main_obmalloc ,
1447
1447
& allow_fork , & allow_exec ,
1448
1448
& allow_threads , & allow_daemon_threads ,
1449
1449
& check_multi_interp_extensions ,
1450
- & own_gil )) {
1450
+ & gil )) {
1451
1451
return NULL ;
1452
1452
}
1453
1453
if (use_main_obmalloc < 0 ) {
@@ -1466,8 +1466,8 @@ run_in_subinterp_with_config(PyObject *self, PyObject *args, PyObject *kwargs)
1466
1466
PyErr_SetString (PyExc_ValueError , "missing allow_threads" );
1467
1467
return NULL ;
1468
1468
}
1469
- if (own_gil < 0 ) {
1470
- PyErr_SetString (PyExc_ValueError , "missing own_gil " );
1469
+ if (gil < 0 ) {
1470
+ PyErr_SetString (PyExc_ValueError , "missing gil " );
1471
1471
return NULL ;
1472
1472
}
1473
1473
if (allow_daemon_threads < 0 ) {
@@ -1490,7 +1490,7 @@ run_in_subinterp_with_config(PyObject *self, PyObject *args, PyObject *kwargs)
1490
1490
.allow_threads = allow_threads ,
1491
1491
.allow_daemon_threads = allow_daemon_threads ,
1492
1492
.check_multi_interp_extensions = check_multi_interp_extensions ,
1493
- .own_gil = own_gil ,
1493
+ .gil = gil ,
1494
1494
};
1495
1495
PyStatus status = Py_NewInterpreterFromConfig (& substate , & config );
1496
1496
if (PyStatus_Exception (status )) {
0 commit comments