Docstrings in Python

Publicado em: 24 Julho 2023
no canal de: Python Morsels
1,046
33

In Python we prefer docstrings to document our code rather than just comments. Docstrings must be the very first statement in their function, class, or module. Python's help function uses these.

Read an article version of this video at https://pym.dev/docstrings/

Find more Python screencasts at https://pym.dev/screencasts/

00:00 What is a docstring
00:20 Docstrings must be the first statement in a function
01:28 Triple quotes: convention or requirement?
01:51 PEP 257: the docstring style guide
02:42 The ‍_doc_‍ attribute
03:09 Docstrings in classes
03:39 Modules have docstring too
04:18 Summary


Nesta página do site você pode assistir ao vídeo on-line Docstrings in Python duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Python Morsels 24 Julho 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,046 vezes e gostou 33 espectadores. Boa visualização!