Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
forsaken
· 5y ago · 0 comments
Sphinx supports this for Python:
https://www.sphinx-doc.org/en/master/usage/extensions/doctes...
Comments
[–]
m45t3r
5y ago
This is actually something from Python's stdlib:
https://docs.python.org/3/library/doctest.html
Really underrated.
[–]
TT3351
5y ago
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.
[–]
MattGaiser
5y ago
My job is mostly Python. Did not know this existed.