4 ms·
A docstring is not a comment. A docstring is actually a string that gets saved on the object, where as a comment is not used at all.
by forsaken 13y ago
A docstring is not a comment. A docstring is actually a string that gets saved on the object, where as a comment is not used at all.
- quacker 13y agoRight, and comments and documentation serve different purposes. But appropriate docstrings will greatly reduce the need for comments.