@@ -58,8 +58,9 @@ the following command can be used to display the disassembly of
58
58
<BLANKLINE>
59
59
3 2 LOAD_GLOBAL 1 (len + NULL)
60
60
12 LOAD_FAST 0 (alist)
61
- 14 CALL 1
62
- 22 RETURN_VALUE
61
+ 14 PUSH_NULL
62
+ 16 CALL 1
63
+ 24 RETURN_VALUE
63
64
64
65
(The "2" is a line number).
65
66
@@ -138,6 +139,7 @@ Example:
138
139
RESUME
139
140
LOAD_GLOBAL
140
141
LOAD_FAST
142
+ PUSH_NULL
141
143
CALL
142
144
RETURN_VALUE
143
145
@@ -1391,21 +1393,14 @@ iterations of the loop.
1391
1393
.. opcode :: CALL (argc)
1392
1394
1393
1395
Calls a callable object with the number of arguments specified by ``argc ``,
1394
- including the named arguments specified by the preceding
1395
- :opcode: `KW_NAMES `, if any.
1396
- On the stack are (in ascending order), either:
1396
+ including the named arguments, if any.
1397
+ On the stack are (in ascending order):
1397
1398
1398
- * NULL
1399
1399
* The callable
1400
- * The positional arguments
1401
- * The named arguments
1402
-
1403
- or:
1404
-
1405
- * The callable
1406
- * ``self ``
1400
+ * ``self `` (or ``NULL ``)
1407
1401
* The remaining positional arguments
1408
1402
* The named arguments
1403
+ * A tuple of keyword names (or ``NULL ``)
1409
1404
1410
1405
``argc `` is the total of the positional and named arguments, excluding
1411
1406
``self `` when a ``NULL `` is not present.
@@ -1416,6 +1411,10 @@ iterations of the loop.
1416
1411
1417
1412
.. versionadded :: 3.11
1418
1413
1414
+ .. versionchanged :: 3.13
1415
+ Keyword names are now pushed to the stack instead of being indicated by
1416
+ a preceding ``KW_NAMES `` instruction.
1417
+
1419
1418
1420
1419
.. opcode :: CALL_FUNCTION_EX (flags)
1421
1420
@@ -1441,15 +1440,6 @@ iterations of the loop.
1441
1440
.. versionadded :: 3.11
1442
1441
1443
1442
1444
- .. opcode :: KW_NAMES (consti)
1445
-
1446
- Prefixes :opcode: `CALL `.
1447
- Stores a reference to ``co_consts[consti] `` into an internal variable
1448
- for use by :opcode: `CALL `. ``co_consts[consti] `` must be a tuple of strings.
1449
-
1450
- .. versionadded :: 3.11
1451
-
1452
-
1453
1443
.. opcode :: MAKE_FUNCTION
1454
1444
1455
1445
Pushes a new function object on the stack built from the code object at ``STACK[1] ``.
0 commit comments