Skip to content

Commit a3dc784

Browse files
authored
gh-145857: Replace DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL (GH-146314)
1 parent c393ab6 commit a3dc784

19 files changed

Lines changed: 1046 additions & 1095 deletions

Doc/library/dis.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,11 +1111,6 @@ iterations of the loop.
11111111
Works as :opcode:`STORE_NAME`, but stores the name as a global.
11121112

11131113

1114-
.. opcode:: DELETE_GLOBAL (namei)
1115-
1116-
Deletes a global name.
1117-
1118-
11191114
.. opcode:: LOAD_CONST (consti)
11201115

11211116
Pushes ``co_consts[consti]`` onto the stack.

Doc/tools/removed-ids.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ c-api/file.html: deprecated-api
66

77
# Removed sections
88
library/asyncio-task.html: terminating-a-task-group
9+
library/dis.html: opcode-DELETE_GLOBAL
910
library/dis.html: opcode-DELETE_NAME
1011
library/asyncio-llapi-index.html: event-loop-policies
1112

Include/internal/pycore_magic_number.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ Known values:
300300
Python 3.16a0 3700 (Initial version)
301301
Python 3.16a0 3701 (Add CONSTANT_EMPTY_TUPLE to LOAD_COMMON_CONSTANT)
302302
Python 3.16a1 3702 (Replace DELETE_NAME with PUSH_NULL; STORE_NAME)
303+
Python 3.16a1 3703 (Replace DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL)
303304
304305
305306
Python 3.17 will start with 3750
@@ -313,7 +314,7 @@ PC/launcher.c must also be updated.
313314
314315
*/
315316

316-
#define PYC_MAGIC_NUMBER 3702
317+
#define PYC_MAGIC_NUMBER 3703
317318
/* This is equivalent to converting PYC_MAGIC_NUMBER to 2 bytes
318319
(little-endian) and then appending b'\r\n'. */
319320
#define PYC_MAGIC_NUMBER_TOKEN \

Include/internal/pycore_opcode_metadata.h

Lines changed: 2 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)