M
MetalOne
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.
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.