TERMIUM Plus®
The Government of Canada’s terminology and linguistic data bank.
TRIPLE QUOTES [2 records]
Record 1 - internal organization data 2023-10-17
Record 1, English
Record 1, Subject field(s)
- Programming Languages
- Codes (Software)
Record 1, Main entry term, English
- one-line docstring
1, record 1, English, one%2Dline%20docstring
correct
Record 1, Abbreviations, English
Record 1, Synonyms, English
Record 1, Textual support, English
Record number: 1, Textual support number: 1 CONT
Per convention, you use one-line docstrings if the function, module, class, or method is obvious enough to warrant a short explanation—but nothing more. You can enclose the one-liner docstring within single quotes, double quotes, or even triple quotes. However, enclosing the one-liner docstring in a triple quote is the most Pythonic way. 2, record 1, English, - one%2Dline%20docstring
Record 1, Key term(s)
- oneline docstring
Record 1, French
Record 1, Domaine(s)
- Langages de programmation
- Codes (Logiciels)
Record 1, Main entry term, French
- chaîne de documentation sur une ligne
1, record 1, French, cha%C3%AEne%20de%20documentation%20sur%20une%20ligne
correct, feminine noun
Record 1, Abbreviations, French
Record 1, Synonyms, French
- docstring sur une ligne 2, record 1, French, docstring%20sur%20une%20ligne
correct, feminine noun
Record 1, Textual support, French
Record 1, Spanish
Record 1, Textual support, Spanish
Record 2 - internal organization data 2021-12-22
Record 2, English
Record 2, Subject field(s)
- Programming Languages
- Codes (Software)
Record 2, Main entry term, English
- triple quotes
1, record 2, English, triple%20quotes
correct, plural
Record 2, Abbreviations, English
Record 2, Synonyms, English
Record 2, Textual support, English
Record number: 2, Textual support number: 1 CONT
Spanning strings over multiple lines can be done using Python's triple quotes. It can also be used for long comments in code... As the name suggests its syntax consists of three consecutive single or double-quotes. 2, record 2, English, - triple%20quotes
Record 2, French
Record 2, Domaine(s)
- Langages de programmation
- Codes (Logiciels)
Record 2, Main entry term, French
- triples guillemets
1, record 2, French, triples%20guillemets
correct, plural masculine noun
Record 2, Abbreviations, French
Record 2, Synonyms, French
- triples apostrophes 1, record 2, French, triples%20apostrophes
correct, plural feminine noun
- guillemets triples 2, record 2, French, guillemets%20triples
correct, plural masculine noun, less frequent
- apostrophes triples 3, record 2, French, apostrophes%20triples
correct, plural feminine noun, less frequent
Record 2, Textual support, French
Record 2, Spanish
Record 2, Textual support, Spanish
Copyright notice for the TERMIUM Plus® data bank
© Public Services and Procurement Canada, 2025
TERMIUM Plus®, the Government of Canada's terminology and linguistic data bank
A product of the Translation Bureau
Features
Language Portal of Canada

Access a collection of Canadian resources on all aspects of English and French, including quizzes.
Writing tools

The Language Portal’s writing tools have a new look! Easy to consult, they give you access to a wealth of information that will help you write better in English and French.
Glossaries and vocabularies

Access Translation Bureau glossaries and vocabularies.
- Date Modified: