Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Izkata
4 months ago
|
parent
|
context
|
favorite
| on:
Natural occurring molecule rivals Ozempic in weigh...
> 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.
TheRealPomax
4 months ago
[–]
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:
Any string. Triple-quoted is just multiline strings and works anywhere.