Re: blist question

2011-07-07 Thread Raymond Hettinger
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

Re: blist question

2011-07-07 Thread Miki Tebeka
Have you looked at http://docs.python.org/library/collections.html#collections.deque ? -- http://mail.python.org/mailman/listinfo/python-list

Re: blist question

2011-07-07 Thread Daniel Stutzbach
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.

blist question

2011-07-07 Thread dmitrey
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