News for hackers. Stuff that matters.
Re:“This is the worst documentation I have ever seen in my l... by m45t3r on Monday December 14, 2020 @04:19PM (#25423466)
This is actually something from Python's stdlib: https://docs.python.org/3/library/doctest.html

Really underrated.

Re:“This is the worst documentation I have ever seen in my l... by TT3351 on Monday December 14, 2020 @04:29PM (#25423600)
I seem to recall a talk given at one point that demonstrated a scheme that would reverse engineer functions out of whole cloth based only on docstrings and doctests, but of course I can't find it now.
Re:“This is the worst documentation I have ever seen in my l... by MattGaiser on Monday December 14, 2020 @04:36PM (#25423684)
My job is mostly Python. Did not know this existed.