django-planet
Dec. 10, 2023

Test your documentation

published by James Bennett
in blog James Bennett
original entry Test your documentation

This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction.

Consider a docstring

Suppose you’re writing a Python function and, as you’re supposed to do, you give it a docstring, and you even provide some examples of how the function is supposed …

Read full entry