Skip to content

Commit e3d1455

Browse files
shivankgtmzware
authored andcommitted
Update opcode.h header comment to mention the source data file (GH-9935)
This is intended to help code explorers find out more about what's defined there.
1 parent 1deea5e commit e3d1455

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Include/opcode.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/scripts/generate_opcode_h.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import sys
44
import tokenize
55

6-
header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */
6+
header = """
7+
/* Auto-generated by Tools/scripts/generate_opcode_h.py from Lib/opcode.py */
78
#ifndef Py_OPCODE_H
89
#define Py_OPCODE_H
910
#ifdef __cplusplus
@@ -12,7 +13,7 @@
1213
1314
1415
/* Instruction opcodes for compiled code */
15-
"""
16+
""".lstrip()
1617

1718
footer = """
1819
/* EXCEPT_HANDLER is a special, implicit block type which is created when

0 commit comments

Comments
 (0)