News for hackers. Stuff that matters.
Re:Margin Notes: Automatic code documentation with recorded ... by pmontra on Wednesday November 28, 2018 @05:39PM (#18556353)
Re:Margin Notes: Automatic code documentation with recorded ... by merlincorey on Wednesday November 28, 2018 @05:47PM (#18556415)
And Python's Axe!

I mean doctest: https://docs.python.org/3/library/doctest.html

Re:Margin Notes: Automatic code documentation with recorded ... by westurner on Thursday November 29, 2018 @06:03AM (#18559384)
1. sys.settrace() for {call, return, exception, c_call, c_return, and c_exception}

2. Serialize as/to doctests. Is there a good way to serialize Python objects as Python code?

3. Add doctests to callables' docstrings with AST

Mutation testing tools may have already implemented serialization to doctests but IDK about docstring modification.

... MOSES is an evolutionary algorithm that mutates and simplifies a combo tree until it has built a function with less error for the given input/output pairs.