Message268096
| Author |
benjamin.peterson |
| Recipients |
Demur Rumed, Mark.Shannon, benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, serhiy.storchaka, vstinner, yselivanov |
| Date |
2016年06月10日.06:46:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1465541194.35.0.788211545776.issue27140@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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... |
|