Author Jonathan.Livni
Recipients Jonathan.Livni, georg.brandl
Date 2011-02-16.08:51:55
SpamBayes Score 9.84046e-07
Marked as misclassified No
Message-id <1297846328.11.0.610407141026.issue11221@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-02-16 08:52:08Jonathan.Livnisetrecipients: + Jonathan.Livni, georg.brandl
2011-02-16 08:52:08Jonathan.Livnisetmessageid: <1297846328.11.0.610407141026.issue11221@psf.upfronthosting.co.za>
2011-02-16 08:51:55Jonathan.Livnilinkissue11221 messages
2011-02-16 08:51:55Jonathan.Livnicreate