You can add a docstring to a function, class, or module by adding a string as the first indented statement.
Men kan een docstring toevoegen aan een functie, klasse of module door een string toe te voegen als het eerste geïndenteerde statement.
Example Remark: If you use the test examples below for a docstring, you should know that a single quotation mark that is used in the string that was given as second argument to the initializing method of the class Bifid, must get a double escape.
Voorbeeld Opmerking: Indien je onderstaande testvoorbeelden opneemt in een docstring, let er dan op dat het enkele aanhalingsteken dat gebruikt wordt in de string die als tweede argument wordt doorgegeven aan de initialisatiemethode van de klasse Bifid, een dubbele escape moet meekrijgen.
Add a docstring to the class that explains what the algorithm does.
Voeg een docstring toe aan de klasse die uitlegt wat het algoritme doet.
This comment is delimited using three double quotes, and is called a docstring.
Deze commentaart is afgebakend met drie dubbele quotes en wordt de docstring genoemd.
The first is the comment also called a docstring followed by the command pass.
De eerste regel is de opmerking, ook wel de "docstring" genoemd, gevolgd door het commando pass.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.