diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-11-14 00:31:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 00:31:02 (GMT) |
commit | 36aab34fab3d05f254fe80ca542c38c5f9ae11fe (patch) | |
tree | fa858c70058b86c5dfa1396761c7cb8a4150a2db /Python/compile.c | |
parent | b28bb130bbc2ad956828819967d83e06d30a65c5 (diff) | |
download | cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.zip cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.tar.gz cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.tar.bz2 |
gh-107149: make new opcode util functions private rather than public and unstable (#112042)
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6c64b40..8b1eef7 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -883,49 +883,49 @@ PyCompile_OpcodeStackEffect(int opcode, int oparg) } int -PyUnstable_OpcodeIsValid(int opcode) +_PyCompile_OpcodeIsValid(int opcode) { return IS_VALID_OPCODE(opcode); } int -PyUnstable_OpcodeHasArg(int opcode) +_PyCompile_OpcodeHasArg(int opcode) { return OPCODE_HAS_ARG(opcode); } int -PyUnstable_OpcodeHasConst(int opcode) +_PyCompile_OpcodeHasConst(int opcode) { return OPCODE_HAS_CONST(opcode); } int -PyUnstable_OpcodeHasName(int opcode) +_PyCompile_OpcodeHasName(int opcode) { return OPCODE_HAS_NAME(opcode); } int -PyUnstable_OpcodeHasJump(int opcode) +_PyCompile_OpcodeHasJump(int opcode) { return OPCODE_HAS_JUMP(opcode); } int -PyUnstable_OpcodeHasFree(int opcode) +_PyCompile_OpcodeHasFree(int opcode) { return OPCODE_HAS_FREE(opcode); } int -PyUnstable_OpcodeHasLocal(int opcode) +_PyCompile_OpcodeHasLocal(int opcode) { return OPCODE_HAS_LOCAL(opcode); } int -PyUnstable_OpcodeHasExc(int opcode) +_PyCompile_OpcodeHasExc(int opcode) { return IS_BLOCK_PUSH_OPCODE(opcode); } |