diff options
author | Guido van Rossum <guido@python.org> | 2023-07-18 01:30:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 01:30:41 (GMT) |
commit | 1e36ca63f9f5e0399efe13a80499cef290314c2a (patch) | |
tree | 4e5ddbcd299a65c5f8eb90cd70ff26b62c4b63a4 /Include/internal | |
parent | 00e52acebd2beb2663202bfc4be0ce79ba77361e (diff) | |
download | cpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.zip cpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.tar.gz cpython-1e36ca63f9f5e0399efe13a80499cef290314c2a.tar.bz2 |
Small fixes to code generator (#106845)
These repair nits I found in PR gh-106798 (issue gh-106797) and in PR gh-106716 (issue gh-106706).
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_opcode_metadata.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/internal/pycore_opcode_metadata.h b/Include/internal/pycore_opcode_metadata.h index c3a0dbb..a5844b3 100644 --- a/Include/internal/pycore_opcode_metadata.h +++ b/Include/internal/pycore_opcode_metadata.h @@ -842,15 +842,15 @@ _PyOpcode_num_pushed(int opcode, int oparg, bool jump) { case PUSH_EXC_INFO: return 2; case LOAD_ATTR_METHOD_WITH_VALUES: - return 1 + 1; + return 2; case LOAD_ATTR_METHOD_NO_DICT: - return 1 + 1; + return 2; case LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES: - return 0 + 1; + return 1; case LOAD_ATTR_NONDESCRIPTOR_NO_DICT: - return 0 + 1; + return 1; case LOAD_ATTR_METHOD_LAZY_DICT: - return 1 + 1; + return 2; case KW_NAMES: return 0; case INSTRUMENTED_CALL: |