On Jul 7, 5:08 am, dmitrey wrote:
> hi all,
> I feel lack of native Python lists operations (e.g. taking N greatest
> elements with the involved key function and O(n) speed)
Take a look at heapq.nlargest()...
> and
> occasionally found blisthttp://pypi.python.org/pypi/blist/
> Its entry says it
Have you looked at
http://docs.python.org/library/collections.html#collections.deque ?
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Jul 7, 2011 at 5:08 AM, dmitrey wrote:
> I feel lack of native Python lists operations (e.g. taking N greatest
> elements with the involved key function and O(n) speed) and
> occasionally found blist
> http://pypi.python.org/pypi/blist/
>
> Its entry says it is better than Python list.
hi all,
I feel lack of native Python lists operations (e.g. taking N greatest
elements with the involved key function and O(n) speed) and
occasionally found blist
http://pypi.python.org/pypi/blist/
Its entry says it is better than Python list. Did anyone ensure?
Will it ever be merged into Python s