Skip to content

Glossary: Python Beyond the Basics

docstring

Also written: docstrings

A text string placed first inside a function, class or file to describe it. It is also enough to fill an otherwise empty class.

Where the book teaches it

Related terms

exception