Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Reminds me of the comment at the start of python's heapq module: http://hg.python.org/cpython/file/bd8afb90ebf2/Lib/heapq.py . Grammatically not a comment, but I would count it as one semantically.


I really hate how heapq in python doesn't allow a comparator function. Stuffing tuples is the accepted solution, but it feels wrong and adds a bunch of unnecessary code when using heapq. Nice comment, but sub-par implementation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: