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 tim.peters
Recipients JackAidley, eloff, rhettinger, tim.peters
Date 2015-09-30.17:32:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443634341.53.0.0292320028403.issue1602378@psf.upfronthosting.co.za>
In-reply-to
Content
What's your objection?  Here's your original example:

>>> from bisect import *
>>> L = [1,2,3,3,3,4,5]
>>> x = 3
>>> i = bisect_left(L, x)
>>> i
2
>>> all(val < x for val in L[:i])
True
>>> all(val >= x for val in L[i:])
True

Which criteria are not met?
History
Date User Action Args
2015-09-30 17:32:21tim.peterssetrecipients: + tim.peters, rhettinger, eloff, JackAidley
2015-09-30 17:32:21tim.peterssetmessageid: <1443634341.53.0.0292320028403.issue1602378@psf.upfronthosting.co.za>
2015-09-30 17:32:21tim.peterslinkissue1602378 messages
2015-09-30 17:32:21tim.peterscreate