data structures module

MetalOne jcb at iteris.com
Fri Jan 16 02:06:44 EST 2004


I am fairly new to Python.
Today, I wanted a priority queue.
I notice that Python does not have any sorted lists.
I know that I can call list.sort(), but that seems rather inefficient
to call every time an element is added.
I am wondering why there is not a module or modules containing many
common data structures.  Has such a thing been decided against?  Is it
that just nobody has done it?  Has nobody else suggested the need for
it?  Maybe I should search, but I am too tired now, I need sleep.



More information about the Python-list mailing list