@@ -1444,26 +1444,24 @@ _testclinic_TestClass_defclass_posonly_varpos_impl(PyObject *self,
1444
1444
1445
1445
1446
1446
/*[clinic input]
1447
- @disable fastcall
1448
1447
@classmethod
1449
- _testclinic.TestClass.class_method as varpos_no_fastcall
1448
+ _testclinic.TestClass.__new__ as varpos_no_fastcall
1450
1449
1451
1450
*args: tuple
1452
1451
1453
1452
[clinic start generated code]*/
1454
1453
1455
1454
static PyObject *
1456
1455
varpos_no_fastcall_impl (PyTypeObject * type , PyObject * args )
1457
- /*[clinic end generated code: output=04e94f2898bb2dde input=10c2251e9ac6baf3 ]*/
1456
+ /*[clinic end generated code: output=04e94f2898bb2dde input=c5d3d30a6589f97f ]*/
1458
1457
{
1459
1458
return Py_NewRef (args );
1460
1459
}
1461
1460
1462
1461
1463
1462
/*[clinic input]
1464
- @disable fastcall
1465
1463
@classmethod
1466
- _testclinic.TestClass.class_method as posonly_varpos_no_fastcall
1464
+ _testclinic.TestClass.__new__ as posonly_varpos_no_fastcall
1467
1465
1468
1466
a: object
1469
1467
b: object
@@ -1475,16 +1473,15 @@ _testclinic.TestClass.class_method as posonly_varpos_no_fastcall
1475
1473
static PyObject *
1476
1474
posonly_varpos_no_fastcall_impl (PyTypeObject * type , PyObject * a , PyObject * b ,
1477
1475
PyObject * args )
1478
- /*[clinic end generated code: output=b0a0425719f69f5a input=f7c75501a787c7af ]*/
1476
+ /*[clinic end generated code: output=b0a0425719f69f5a input=10f29f2c2c6bfdc4 ]*/
1479
1477
{
1480
1478
return pack_arguments_newref (3 , a , b , args );
1481
1479
}
1482
1480
1483
1481
1484
1482
/*[clinic input]
1485
- @disable fastcall
1486
1483
@classmethod
1487
- _testclinic.TestClass.class_method as posonly_req_opt_varpos_no_fastcall
1484
+ _testclinic.TestClass.__new__ as posonly_req_opt_varpos_no_fastcall
1488
1485
1489
1486
a: object
1490
1487
b: object = False
@@ -1496,16 +1493,15 @@ _testclinic.TestClass.class_method as posonly_req_opt_varpos_no_fastcall
1496
1493
static PyObject *
1497
1494
posonly_req_opt_varpos_no_fastcall_impl (PyTypeObject * type , PyObject * a ,
1498
1495
PyObject * b , PyObject * args )
1499
- /*[clinic end generated code: output=3c44915b1a554e2d input=701bf93e7572e6b3 ]*/
1496
+ /*[clinic end generated code: output=3c44915b1a554e2d input=d319302a8748147c ]*/
1500
1497
{
1501
1498
return pack_arguments_newref (3 , a , b , args );
1502
1499
}
1503
1500
1504
1501
1505
1502
/*[clinic input]
1506
- @disable fastcall
1507
1503
@classmethod
1508
- _testclinic.TestClass.class_method as posonly_poskw_varpos_no_fastcall
1504
+ _testclinic.TestClass.__new__ as posonly_poskw_varpos_no_fastcall
1509
1505
1510
1506
a: object
1511
1507
/
@@ -1517,16 +1513,15 @@ _testclinic.TestClass.class_method as posonly_poskw_varpos_no_fastcall
1517
1513
static PyObject *
1518
1514
posonly_poskw_varpos_no_fastcall_impl (PyTypeObject * type , PyObject * a ,
1519
1515
PyObject * b , PyObject * args )
1520
- /*[clinic end generated code: output=6ad74bed4bdc7f96 input=2bbbc74dc92ba7ba ]*/
1516
+ /*[clinic end generated code: output=6ad74bed4bdc7f96 input=1f8c113e749414a3 ]*/
1521
1517
{
1522
1518
return pack_arguments_newref (3 , a , b , args );
1523
1519
}
1524
1520
1525
1521
1526
1522
/*[clinic input]
1527
- @disable fastcall
1528
1523
@classmethod
1529
- _testclinic.TestClass.class_method as varpos_array_no_fastcall
1524
+ _testclinic.TestClass.__new__ as varpos_array_no_fastcall
1530
1525
1531
1526
*args: array
1532
1527
@@ -1535,16 +1530,15 @@ _testclinic.TestClass.class_method as varpos_array_no_fastcall
1535
1530
static PyObject *
1536
1531
varpos_array_no_fastcall_impl (PyTypeObject * type , PyObject * const * args ,
1537
1532
Py_ssize_t args_length )
1538
- /*[clinic end generated code: output=f99d984346c60d42 input=de625878254ecac0 ]*/
1533
+ /*[clinic end generated code: output=f99d984346c60d42 input=368d8eea6de48c12 ]*/
1539
1534
{
1540
1535
return _PyTuple_FromArray (args , args_length );
1541
1536
}
1542
1537
1543
1538
1544
1539
/*[clinic input]
1545
- @disable fastcall
1546
1540
@classmethod
1547
- _testclinic.TestClass.class_method as posonly_varpos_array_no_fastcall
1541
+ _testclinic.TestClass.__new__ as posonly_varpos_array_no_fastcall
1548
1542
1549
1543
a: object
1550
1544
b: object
@@ -1557,16 +1551,15 @@ static PyObject *
1557
1551
posonly_varpos_array_no_fastcall_impl (PyTypeObject * type , PyObject * a ,
1558
1552
PyObject * b , PyObject * const * args ,
1559
1553
Py_ssize_t args_length )
1560
- /*[clinic end generated code: output=1eec4da1fb5b5978 input=15adeb514423f485 ]*/
1554
+ /*[clinic end generated code: output=1eec4da1fb5b5978 input=7330c8d819a23548 ]*/
1561
1555
{
1562
1556
return pack_arguments_2pos_varpos (a , b , args , args_length );
1563
1557
}
1564
1558
1565
1559
1566
1560
/*[clinic input]
1567
- @disable fastcall
1568
1561
@classmethod
1569
- _testclinic.TestClass.class_method as posonly_req_opt_varpos_array_no_fastcall
1562
+ _testclinic.TestClass.__new__ as posonly_req_opt_varpos_array_no_fastcall
1570
1563
1571
1564
a: object
1572
1565
b: object = False
@@ -1580,16 +1573,15 @@ posonly_req_opt_varpos_array_no_fastcall_impl(PyTypeObject *type,
1580
1573
PyObject * a , PyObject * b ,
1581
1574
PyObject * const * args ,
1582
1575
Py_ssize_t args_length )
1583
- /*[clinic end generated code: output=88041c2176135218 input=445ff173a49709d5 ]*/
1576
+ /*[clinic end generated code: output=88041c2176135218 input=7f5fd34ee5f9e0bf ]*/
1584
1577
{
1585
1578
return pack_arguments_2pos_varpos (a , b , args , args_length );
1586
1579
}
1587
1580
1588
1581
1589
1582
/*[clinic input]
1590
- @disable fastcall
1591
1583
@classmethod
1592
- _testclinic.TestClass.class_method as posonly_poskw_varpos_array_no_fastcall
1584
+ _testclinic.TestClass.__new__ as posonly_poskw_varpos_array_no_fastcall
1593
1585
1594
1586
a: object
1595
1587
/
@@ -1603,7 +1595,7 @@ posonly_poskw_varpos_array_no_fastcall_impl(PyTypeObject *type, PyObject *a,
1603
1595
PyObject * b ,
1604
1596
PyObject * const * args ,
1605
1597
Py_ssize_t args_length )
1606
- /*[clinic end generated code: output=70eda18c3667681e input=c0ac0f6b990f553c ]*/
1598
+ /*[clinic end generated code: output=70eda18c3667681e input=2b0fcd7bd9bb865c ]*/
1607
1599
{
1608
1600
return pack_arguments_2pos_varpos (a , b , args , args_length );
1609
1601
}
@@ -1614,27 +1606,28 @@ static struct PyMethodDef test_class_methods[] = {
1614
1606
_TESTCLINIC_TESTCLASS_DEFCLASS_VARPOS_METHODDEF
1615
1607
_TESTCLINIC_TESTCLASS_DEFCLASS_POSONLY_VARPOS_METHODDEF
1616
1608
1617
- {"varpos_no_fastcall" , _PyCFunction_CAST (varpos_no_fastcall ),
1618
- METH_VARARGS |METH_CLASS , "" },
1619
- {"posonly_varpos_no_fastcall" , _PyCFunction_CAST (posonly_varpos_no_fastcall ),
1620
- METH_VARARGS |METH_CLASS , "" },
1621
- {"posonly_req_opt_varpos_no_fastcall" , _PyCFunction_CAST (posonly_req_opt_varpos_no_fastcall ),
1622
- METH_VARARGS |METH_CLASS , "" },
1623
- {"posonly_poskw_varpos_no_fastcall" , _PyCFunction_CAST (posonly_poskw_varpos_no_fastcall ),
1624
- METH_VARARGS |METH_KEYWORDS |METH_CLASS , "" },
1609
+ {"varpos_no_fastcall" , varpos_no_fastcall ,
1610
+ METH_VARARGS |METH_CLASS , PyDoc_STR ("" )},
1611
+ {"posonly_varpos_no_fastcall" , posonly_varpos_no_fastcall ,
1612
+ METH_VARARGS |METH_CLASS , PyDoc_STR ("" )},
1613
+ {"posonly_req_opt_varpos_no_fastcall" , posonly_req_opt_varpos_no_fastcall ,
1614
+ METH_VARARGS |METH_CLASS , PyDoc_STR ("" )},
1615
+ {"posonly_poskw_varpos_no_fastcall" ,
1616
+ _PyCFunction_CAST (posonly_poskw_varpos_no_fastcall ),
1617
+ METH_VARARGS |METH_KEYWORDS |METH_CLASS , PyDoc_STR ("" )},
1625
1618
1626
1619
{"varpos_array_no_fastcall" ,
1627
- _PyCFunction_CAST ( varpos_array_no_fastcall ) ,
1628
- METH_VARARGS |METH_KEYWORDS | METH_CLASS , "" },
1620
+ varpos_array_no_fastcall ,
1621
+ METH_VARARGS |METH_CLASS , PyDoc_STR ( "" ) },
1629
1622
{"posonly_varpos_array_no_fastcall" ,
1630
- _PyCFunction_CAST ( posonly_varpos_array_no_fastcall ) ,
1631
- METH_VARARGS |METH_KEYWORDS | METH_CLASS , "" },
1623
+ posonly_varpos_array_no_fastcall ,
1624
+ METH_VARARGS |METH_CLASS , PyDoc_STR ( "" ) },
1632
1625
{"posonly_req_opt_varpos_array_no_fastcall" ,
1633
- _PyCFunction_CAST ( posonly_req_opt_varpos_array_no_fastcall ) ,
1634
- METH_VARARGS |METH_KEYWORDS | METH_CLASS , "" },
1626
+ posonly_req_opt_varpos_array_no_fastcall ,
1627
+ METH_VARARGS |METH_CLASS , PyDoc_STR ( "" ) },
1635
1628
{"posonly_poskw_varpos_array_no_fastcall" ,
1636
1629
_PyCFunction_CAST (posonly_poskw_varpos_array_no_fastcall ),
1637
- METH_VARARGS |METH_KEYWORDS |METH_CLASS , "" },
1630
+ METH_VARARGS |METH_KEYWORDS |METH_CLASS , PyDoc_STR ( "" ) },
1638
1631
1639
1632
{NULL , NULL }
1640
1633
};
0 commit comments