April 2014
Beginner to intermediate
634 pages
15h 22m
English
All Python code should have docstrings at the module, class, and method levels. Not every single method requires a docstring. Some method names are really well chosen, and little more needs to be said about them. Most times, however, documentation is essential for clarity.
Python documentation is often written using ReStructured Text (RST) markup.
Throughout the code examples in the book, however, we'll omit docstrings. It keeps the book to a reasonable size. This gap has the disadvantage that it makes docstrings seem optional. They're emphatically not optional.
We'll emphasize this again. Docstrings are essential.
The docstring material is used by Python in the following three ways:
help() ...