[Python-Dev] heapq, min and max
Terry Reedy
tjreedy at udel.edu
Wed Oct 22 18:28:42 CEST 2008
Kristján Valur Jónsson wrote:
> Ok. And sorry, I missed your part about heapq now having a c implementation.
> This is indeed good, I was misled by the presence of heapq.py.
Duplicate Python/C code will probably become more common. Even if the
Python is not used for prototyping (which I believe it was for heapq),
it serves to document the intention of the C code and to be a ready to
go version for non-C implementations. And it can be used as a basis for
modification by Pythoneers who want slightly different behavior.
More information about the Python-Dev
mailing list