logo

... docs: assert



Notes

When you've got a function like this:

def some_func(a, b):
    """
    This function adds two variables together.
    """
    return a + b

Then you can inspect the docstring by querying:

some_func.__doc__

This enables us to parse the docstring and to do whatever we want with it.

Feedback? See an issue? Something unclear? Feel free to mention it here.



If you want to be kept up to date, consider signing up for the newsletter.