GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — gh-148871: Add CONSTANT_EMPTY_TUPLE to LOAD_COMMON_CONSTANT by eendebakpt · Pull Request #149688 · python/cpython Conversation
|
| Constant | stdlib (613,524 entries) | pyperformance (9,550 entries) | Immortal singleton? |
|---|---|---|---|
() |
14,270 (2.33%) | 112 (1.17%) | yes (Py_CONSTANT_EMPTY_TUPLE) |
b"" |
1,012 (0.16%) | 4 (0.04%) | yes (Py_CONSTANT_EMPTY_BYTES) |
1.0 |
516 (0.08%) | 14 (0.15%) | no (would need new immortal float) |
0.0 |
457 (0.07%) | 13 (0.14%) | no (would need new immortal float; care re: -0.0) |
... |
139 (0.02%) | 1 (0.01%) | yes (_Py_EllipsisObject) |
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?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
84e6f85 to
79cc39d
Compare
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
There are, inevitably, merge conflicts. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ty-tuple # Conflicts: # Include/internal/pycore_opcode_utils.h # Lib/opcode.py # Python/pylifecycle.c
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.