[Python-ideas] Consider adding reverse argument to heapq methods.

2018-03-06 Thread Neil Girdhar
heapq creates and works with min-heaps. Currently, the only way to do this is to use _heapify_max instead of heapify, heapq._heappop_max instead of heapq.heappop, etc. These methods should be exposed using a reverse keyword argument rather than as private methods just like sort. Best, Neil

Re: [Python-ideas] PEP 572 version 2: Statement-Local Name Bindings

2018-03-06 Thread Rhodri James
On 02/03/18 20:02, Jonathan Goble wrote: On Fri, Mar 2, 2018 at 2:56 PM Robert Vanden Eynde wrote: @Rhodri, this is what Everybody does because you hit the "reply to all" button, but, we don't receive two copies on the mail, I don't know why (but that's a good thing).