Message128631
Another note - the original problematic code looks like this:
def non_decreasing(L):
return all(x<=y for x, y in zip(L, L[1:]))
Changing it to:
def non_decreasing(L):
def f(L):
return [x<=y for x, y in zip(L, L[1:])]
return all(f(L))
also worked around the bug |
|
Date |
User |
Action |
Args |
2011-02-16 08:52:08 | Jonathan.Livni | set | recipients:
+ Jonathan.Livni, georg.brandl |
2011-02-16 08:52:08 | Jonathan.Livni | set | messageid: <1297846328.11.0.610407141026.issue11221@psf.upfronthosting.co.za> |
2011-02-16 08:51:55 | Jonathan.Livni | link | issue11221 messages |
2011-02-16 08:51:55 | Jonathan.Livni | create | |
|