News for hackers. Stuff that matters.
Re:Natural occurring molecule rivals Ozempic in weight loss,... by Izkata on Friday March 07, 2025 @03:29PM (#43294229)
> 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.

Re:Natural occurring molecule rivals Ozempic in weight loss,... by TheRealPomax on Friday March 07, 2025 @06:14PM (#43295862)
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 ;)