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

> Python will literally assign the content of your docstring (a triple-quoted string at the start of a function)

Any string. Triple-quoted is just multiline strings and works anywhere.



True, I forget some people think a single line is function documentation; any function that's worth documenting is worth documenting properly, and needs multiline ;)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: