James Lu added the comment:
Even a wrapper class would be helpful, it's simply more pythonic.
On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger
wrote:
>
> Raymond Hettinger added the comment:
>
> The main reason is that there would be very little benefit. Lists are a
> very efficient data st
Raymond Hettinger added the comment:
The main reason is that there would be very little benefit. Lists are a very
efficient data structure and the heap manipulations are also very cheap.
--
assignee: -> rhettinger
nosy: +rhettinger
resolution: -> rejected
status: open -> closed
New submission from James Lu:
The heapq library uses a list or other mutable sequence time to represent a
heap. Since Python is a highly OOP language, why not make heaps their own data
type?
--
components: Library (Lib)
messages: 268159
nosy: James.Lu
priority: normal
severity: normal