This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jonathan.Livni
Recipients Jonathan.Livni, georg.brandl
Date 2011-02-16.08:51:55
SpamBayes Score 9.840455e-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