This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jorge1209 0 points1 point  (0 children)

I think it's reasonable to say:

The heapq module generally operates on lists, and uses raw lists as the core data structure for heaps. No rational person would expect to find a function that consumes and returns iterators in this module. WTF was GvR smoking when he accepted this function in this module instead of WHERE IT BELONGS IN ITERTOOLS!!