@@ -851,6 +851,7 @@ overriding the initial values.");
851
851
/*[clinic input]
852
852
_interpreters.create
853
853
config as configobj: object(py_default="'isolated'") = NULL
854
+ /
854
855
*
855
856
reqrefs: bool = False
856
857
@@ -868,7 +869,7 @@ is "isolated".
868
869
869
870
static PyObject *
870
871
_interpreters_create_impl (PyObject * module , PyObject * configobj , int reqrefs )
871
- /*[clinic end generated code: output=c1cc6835b1277c16 input=c6d69e3ff2315a65 ]*/
872
+ /*[clinic end generated code: output=c1cc6835b1277c16 input=9b240f749f0f0972 ]*/
872
873
{
873
874
PyInterpreterConfig config ;
874
875
if (config_from_object (configobj , & config ) < 0 ) {
@@ -906,6 +907,7 @@ _interpreters_create_impl(PyObject *module, PyObject *configobj, int reqrefs)
906
907
/*[clinic input]
907
908
_interpreters.destroy
908
909
id: object
910
+ /
909
911
*
910
912
restrict as restricted: bool = False
911
913
@@ -917,7 +919,7 @@ So does an unrecognized ID.
917
919
918
920
static PyObject *
919
921
_interpreters_destroy_impl (PyObject * module , PyObject * id , int restricted )
920
- /*[clinic end generated code: output=0bc20da8700ab4dd input=561bdd6537639d40 ]*/
922
+ /*[clinic end generated code: output=0bc20da8700ab4dd input=d2cfa1ef3b4a4ea5 ]*/
921
923
{
922
924
// Look up the interpreter.
923
925
int reqready = 0 ;
@@ -1032,7 +1034,8 @@ _interpreters_get_main_impl(PyObject *module)
1032
1034
/*[clinic input]
1033
1035
_interpreters.set___main___attrs
1034
1036
id: object
1035
- updates: object(subclass_of='&PyDict_Type')
1037
+ ns as updates: object(subclass_of='&PyDict_Type')
1038
+ /
1036
1039
*
1037
1040
restrict as restricted: bool = False
1038
1041
@@ -1042,7 +1045,7 @@ Bind the given attributes in the interpreter's __main__ module.
1042
1045
static PyObject *
1043
1046
_interpreters_set___main___attrs_impl (PyObject * module , PyObject * id ,
1044
1047
PyObject * updates , int restricted )
1045
- /*[clinic end generated code: output=f3803010cb452bf0 input=d16ab8d81371f86a ]*/
1048
+ /*[clinic end generated code: output=f3803010cb452bf0 input=69d409c4dd04dab9 ]*/
1046
1049
{
1047
1050
// Look up the interpreter.
1048
1051
int reqready = 1 ;
@@ -1106,6 +1109,7 @@ _handle_script_error(struct run_result *runres)
1106
1109
/*[clinic input]
1107
1110
_interpreters.exec
1108
1111
id: object
1112
+ /
1109
1113
code: object
1110
1114
shared: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
1111
1115
*
@@ -1130,7 +1134,7 @@ is ignored, including its __globals__ dict.
1130
1134
static PyObject *
1131
1135
_interpreters_exec_impl (PyObject * module , PyObject * id , PyObject * code ,
1132
1136
PyObject * shared , int restricted )
1133
- /*[clinic end generated code: output=492057c4f10dc304 input=5a22c1ed0c5dbcf3 ]*/
1137
+ /*[clinic end generated code: output=492057c4f10dc304 input=687f3f6ac5294593 ]*/
1134
1138
{
1135
1139
PyThreadState * tstate = _PyThreadState_GET ();
1136
1140
int reqready = 1 ;
@@ -1162,6 +1166,7 @@ _interpreters_exec_impl(PyObject *module, PyObject *id, PyObject *code,
1162
1166
/*[clinic input]
1163
1167
_interpreters.run_string
1164
1168
id: object
1169
+ /
1165
1170
script: unicode
1166
1171
shared: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
1167
1172
*
@@ -1213,6 +1218,7 @@ _interpreters_run_string_impl(PyObject *module, PyObject *id,
1213
1218
/*[clinic input]
1214
1219
_interpreters.run_func
1215
1220
id: object
1221
+ /
1216
1222
func: object
1217
1223
shared: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
1218
1224
*
@@ -1229,7 +1235,7 @@ are not supported. Methods and other callables are not supported either.
1229
1235
static PyObject *
1230
1236
_interpreters_run_func_impl (PyObject * module , PyObject * id , PyObject * func ,
1231
1237
PyObject * shared , int restricted )
1232
- /*[clinic end generated code: output=131f7202ca4a0c5e input=2d62bb9b9eaf4948 ]*/
1238
+ /*[clinic end generated code: output=131f7202ca4a0c5e input=aa2dbab6f7354cd6 ]*/
1233
1239
{
1234
1240
#define FUNCNAME MODULE_NAME_STR ".run_func"
1235
1241
PyThreadState * tstate = _PyThreadState_GET ();
@@ -1275,6 +1281,7 @@ _interpreters_run_func_impl(PyObject *module, PyObject *id, PyObject *func,
1275
1281
/*[clinic input]
1276
1282
_interpreters.call
1277
1283
id: object
1284
+ /
1278
1285
callable: object
1279
1286
args as args_obj: object(subclass_of='&PyTuple_Type', c_default='NULL') = ()
1280
1287
kwargs as kwargs_obj: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
@@ -1291,7 +1298,7 @@ static PyObject *
1291
1298
_interpreters_call_impl (PyObject * module , PyObject * id , PyObject * callable ,
1292
1299
PyObject * args_obj , PyObject * kwargs_obj ,
1293
1300
int preserve_exc , int restricted )
1294
- /*[clinic end generated code: output=983ee27b3c43f6ef input=77590fdb3f519d65 ]*/
1301
+ /*[clinic end generated code: output=983ee27b3c43f6ef input=826c8dab4b1059b4 ]*/
1295
1302
{
1296
1303
PyThreadState * tstate = _PyThreadState_GET ();
1297
1304
int reqready = 1 ;
@@ -1330,13 +1337,14 @@ _interpreters_call_impl(PyObject *module, PyObject *id, PyObject *callable,
1330
1337
/*[clinic input]
1331
1338
_interpreters.is_shareable
1332
1339
obj: object
1340
+ /
1333
1341
1334
1342
Return True if the object's data may be shared between interpreters and False otherwise.
1335
1343
[clinic start generated code]*/
1336
1344
1337
1345
static PyObject *
1338
- _interpreters_is_shareable_impl (PyObject * module , PyObject * obj )
1339
- /*[clinic end generated code: output=227856926a22940b input=72b9a36bdf1d2a53 ]*/
1346
+ _interpreters_is_shareable (PyObject * module , PyObject * obj )
1347
+ /*[clinic end generated code: output=f2169d4c1f5d7bca input=4239989a8634b292 ]*/
1340
1348
{
1341
1349
PyThreadState * tstate = _PyThreadState_GET ();
1342
1350
if (_PyObject_CheckXIData (tstate , obj ) == 0 ) {
@@ -1350,6 +1358,7 @@ _interpreters_is_shareable_impl(PyObject *module, PyObject *obj)
1350
1358
/*[clinic input]
1351
1359
_interpreters.is_running
1352
1360
id: object
1361
+ /
1353
1362
*
1354
1363
restrict as restricted: bool = False
1355
1364
@@ -1358,7 +1367,7 @@ Return whether or not the identified interpreter is running.
1358
1367
1359
1368
static PyObject *
1360
1369
_interpreters_is_running_impl (PyObject * module , PyObject * id , int restricted )
1361
- /*[clinic end generated code: output=32a6225d5ded9bdb input=3291578d04231125 ]*/
1370
+ /*[clinic end generated code: output=32a6225d5ded9bdb input=a4d98a82fcb4bf6e ]*/
1362
1371
{
1363
1372
int reqready = 1 ;
1364
1373
PyInterpreterState * interp = \
@@ -1377,6 +1386,7 @@ _interpreters_is_running_impl(PyObject *module, PyObject *id, int restricted)
1377
1386
/*[clinic input]
1378
1387
_interpreters.get_config
1379
1388
id as idobj: object
1389
+ /
1380
1390
*
1381
1391
restrict as restricted: bool = False
1382
1392
@@ -1386,7 +1396,7 @@ Return a representation of the config used to initialize the interpreter.
1386
1396
static PyObject *
1387
1397
_interpreters_get_config_impl (PyObject * module , PyObject * idobj ,
1388
1398
int restricted )
1389
- /*[clinic end generated code: output=63f81d35c2fe1387 input=aa38d50f534eb3c5 ]*/
1399
+ /*[clinic end generated code: output=63f81d35c2fe1387 input=79d88cf77a8ba034 ]*/
1390
1400
{
1391
1401
if (idobj == Py_None ) {
1392
1402
idobj = NULL ;
@@ -1417,13 +1427,14 @@ _interpreters_get_config_impl(PyObject *module, PyObject *idobj,
1417
1427
/*[clinic input]
1418
1428
_interpreters.whence
1419
1429
id: object
1430
+ /
1420
1431
1421
1432
Return an identifier for where the interpreter was created.
1422
1433
[clinic start generated code]*/
1423
1434
1424
1435
static PyObject *
1425
- _interpreters_whence_impl (PyObject * module , PyObject * id )
1426
- /*[clinic end generated code: output=ef2c21ab106c2c20 input=eeede0a2fbfa2968 ]*/
1436
+ _interpreters_whence (PyObject * module , PyObject * id )
1437
+ /*[clinic end generated code: output=e558d207672470cf input=6148f02c882e39f6 ]*/
1427
1438
{
1428
1439
PyInterpreterState * interp = look_up_interp (id );
1429
1440
if (interp == NULL ) {
@@ -1438,6 +1449,7 @@ _interpreters_whence_impl(PyObject *module, PyObject *id)
1438
1449
/*[clinic input]
1439
1450
_interpreters.incref
1440
1451
id: object
1452
+ /
1441
1453
*
1442
1454
implieslink: bool = False
1443
1455
restrict as restricted: bool = False
@@ -1447,7 +1459,7 @@ _interpreters.incref
1447
1459
static PyObject *
1448
1460
_interpreters_incref_impl (PyObject * module , PyObject * id , int implieslink ,
1449
1461
int restricted )
1450
- /*[clinic end generated code: output=eccaa4e03fbe8ee2 input=a0a614748f2e348c ]*/
1462
+ /*[clinic end generated code: output=eccaa4e03fbe8ee2 input=a49374f447dead6f ]*/
1451
1463
{
1452
1464
int reqready = 1 ;
1453
1465
PyInterpreterState * interp = \
@@ -1469,14 +1481,15 @@ _interpreters_incref_impl(PyObject *module, PyObject *id, int implieslink,
1469
1481
/*[clinic input]
1470
1482
_interpreters.decref
1471
1483
id: object
1484
+ /
1472
1485
*
1473
1486
restrict as restricted: bool = False
1474
1487
1475
1488
[clinic start generated code]*/
1476
1489
1477
1490
static PyObject *
1478
1491
_interpreters_decref_impl (PyObject * module , PyObject * id , int restricted )
1479
- /*[clinic end generated code: output=5c54db4b22086171 input=c4aa34f09c44e62a ]*/
1492
+ /*[clinic end generated code: output=5c54db4b22086171 input=6f82beeae0b1c2b1 ]*/
1480
1493
{
1481
1494
int reqready = 1 ;
1482
1495
PyInterpreterState * interp = \
@@ -1494,6 +1507,7 @@ _interpreters_decref_impl(PyObject *module, PyObject *id, int restricted)
1494
1507
/*[clinic input]
1495
1508
_interpreters.capture_exception
1496
1509
exc_arg: object(c_default='NULL') = None
1510
+ /
1497
1511
1498
1512
Return a snapshot of an exception.
1499
1513
@@ -1503,7 +1517,7 @@ The returned snapshot is the same as what _interpreters.exec() returns.
1503
1517
1504
1518
static PyObject *
1505
1519
_interpreters_capture_exception_impl (PyObject * module , PyObject * exc_arg )
1506
- /*[clinic end generated code: output=ef3f5393ef9c88a6 input=e607efac7eb95fba ]*/
1520
+ /*[clinic end generated code: output=ef3f5393ef9c88a6 input=e67d59d7fbb6d58c ]*/
1507
1521
{
1508
1522
PyObject * exc = exc_arg ;
1509
1523
if (exc == NULL || exc == Py_None ) {
0 commit comments