Docstrings in Python

preview_player
Показать описание
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.

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
Рекомендации по теме
Комментарии
Автор

Hello . Thank you for your generosity by sharing these short and concise Python based vidéos. Are you using ViM or ViM keybindings on iDLE editor? Be Blessed and Successful in all your actions. Salutations from France.

xyzxyz