| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Sorry, something went wrong.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
There are, inevitably, merge conflicts. |
Sorry, something went wrong.
…ty-tuple # Conflicts: # Include/internal/pycore_opcode_utils.h # Lib/opcode.py # Python/pylifecycle.c
There was a problem hiding this comment.
Looks good
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add () as a new value for LOAD_COMMON_CONSTANT, following the existing pattern used for "" (CONSTANT_EMPTY_STR). The compiler now folds LOAD_CONST () into LOAD_COMMON_CONSTANT 12, dropping the entry from co_consts.
() is the most common constant left in co_consts after the existing LOAD_COMMON_CONSTANT rewrites. Frequencies in co_consts (top-level entries, recursing into nested code objects):
Common sources of (): __slots__ = (), empty default-args tuples passed to MAKE_FUNCTION, __reduce__ returning (), etc.
b"" and ... are already immortal singletons, but less frequent. For reviewers: should we add these as well?