[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread Raymond Hettinger
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

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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