Hacker News new | ask | show | jobs
by m45t3r 2019 days ago
This is actually something from Python's stdlib: https://docs.python.org/3/library/doctest.html

Really underrated.

2 comments

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.
My job is mostly Python. Did not know this existed.