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

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.


Right, and comments and documentation serve different purposes. But appropriate docstrings will greatly reduce the need for comments.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: