diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-01-22 11:33:12 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-01-22 11:33:12 (GMT) |
commit | efb2413ce82acaa5dec43a8cb14aa7cdf2352fb1 (patch) | |
tree | aa337dfb1c8b7c7911e150dd0ba94e762567fb48 /Python/pystate.c | |
parent | e3560a7dc9eeac324ff407588cb3f0b36ffe5c6e (diff) | |
download | cpython-efb2413ce82acaa5dec43a8cb14aa7cdf2352fb1.zip cpython-efb2413ce82acaa5dec43a8cb14aa7cdf2352fb1.tar.gz cpython-efb2413ce82acaa5dec43a8cb14aa7cdf2352fb1.tar.bz2 |
code_richcompare() now uses the constants types
Issue #25843: When compiling code, don't merge constants if they are equal but
have a different types. For example, "f1, f2 = lambda: 1, lambda: 1.0" is now
correctly compiled to two different functions: f1() returns 1 (int) and f2()
returns 1.0 (int), even if 1 and 1.0 are equal.
Add a new _PyCode_ConstantKey() private function.
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions