[issue24221] Clean-up and optimization for heapq siftup() and siftdown()

Serhiy Storchaka report at bugs.python.org
Mon May 18 08:29:14 CEST 2015


Serhiy Storchaka added the comment:

Perhaps the code will look simpler if introduce the macro _PyList_SWAP_ITEMS(list, i, j).

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24221>
_______________________________________


More information about the Python-bugs-list mailing list