[issue27140] Opcode for creating dict with constant keys
Benjamin Peterson
report at bugs.python.org
Fri Jun 10 02:46:34 EDT 2016
Benjamin Peterson added the comment:
Does this change break this function?
def subtle():
one = {-0. : 'a', -1: 'b'}
two = {0. : 'a', -1: 'b'}
assert all(math.copysign(1, x) < 0 for x in one)
assert any(math.copysign(1, x) > 0 for x in two)
Perhaps you should restrict yourself to strings...
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27140>
_______________________________________
More information about the Python-bugs-list
mailing list