On Mar 16, 11:20 am, "Matimus" <[EMAIL PROTECTED]> wrote:
> You might look at the bisect module (part of the standard
> distribution).

Here is an example:

>>> from bisect import insort
>>> x = [0,100,200,1000]
>>> insort(x,10)
>>> x
[0, 10, 100, 200, 1000]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to