Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:

key_and_reverse.py employs the same strategy as winners.py, but uses lists as 
the nodes of the tree rather than using Node instances. It also eliminates the 
recursion of treeify, and adds (with neither much of a performance hit nor much 
code duplication) support for ``key=some_func`` and/or ``reverse=True`` keyword 
arguments, so it now passes the test_heapq suite.

----------
Added file: https://bugs.python.org/file49180/key_and_reverse.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38938>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to