summaryrefslogtreecommitdiffstats
path: root/Doc
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)
commit3cdd5fb970a7d6950b80cc156a9e345f87c179fc (patch)
tree9056965548ae6c59a250f105ce0b0f0e3a5f0f39 /Doc
parentd52513cb222174df834ea81e61037899248e312c (diff)
downloadcpython-3cdd5fb970a7d6950b80cc156a9e345f87c179fc.zip
cpython-3cdd5fb970a7d6950b80cc156a9e345f87c179fc.tar.gz
cpython-3cdd5fb970a7d6950b80cc156a9e345f87c179fc.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 'Doc')
0 files changed, 0 insertions, 0 deletions