summaryrefslogtreecommitdiffstats
path: root/Python/pymath.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-01-22 11:33:12 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-01-22 11:33:12 (GMT)
commit7791165fb36ecca2398ac81e9b6bc0248821262c (patch)
tree609b25184362f073bee1a4a5d3730add36b5c401 /Python/pymath.c
parent5640bbb6c5c0c9232fd761ef4544687f9123e43e (diff)
downloadcpython-7791165fb36ecca2398ac81e9b6bc0248821262c.zip
cpython-7791165fb36ecca2398ac81e9b6bc0248821262c.tar.gz
cpython-7791165fb36ecca2398ac81e9b6bc0248821262c.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/pymath.c')
0 files changed, 0 insertions, 0 deletions