Re:Reasons to avoid code comments
by pauloortins on Saturday July 13, 2013 @11:59AM
(#6037814)
It works only in python, I think. At time, where is the best practice when testing in python ? Doctests or unittest ?
Although not strictly comments (rather, docstrings, which have a similar purpose), Python's doctest[1] allows you to write code in your docstrings and then test them for correctness.
[1] http://docs.python.org/2/library/doctest.html