Finding the insertion point in a list

Paul Rubin http
Sat Mar 17 02:19:12 EDT 2007


Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> writes:
> (1) It's wrong. That always returns the length of the list. Perhaps you
> meant something like this?
> len(["anything will do" for t in x if y > t])

Yeah, that's what I meant.  



More information about the Python-list mailing list