Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
anonymous
on Sept 19, 2013
|
parent
|
context
|
favorite
| on:
What is the best comment in source code you have e...
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.
jcampbell1
on Sept 19, 2013
[–]
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: