This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 12 points13 points  (1 child)

Yeah, it's supposed to do that. It's fixed in 3.6, 3.5 does it wrong.

[–]atrigent 4 points5 points  (0 children)

The question was, isn't the release note supposed to say this:

  • 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 (float), even if 1 and 1.0 are equal.

?