Glenn Linderman wrote:
On approximately 10/23/2008 12:59 PM, came the following characters from the keyboard of Stef Mientki:
I'm no expert I thought a three-quoted string was called a "doc string", isn't that so ?

No, the docstring is the first string after a function or class definition, that is displayed interactively by "help name", and used for documentation of the function or class. http://docs.python.org/reference/compound_stmts.html#function-definitions Footnotes [3] & [4]

The proper name for three-quoted strings is triple-quoted string: http://docs.python.org/reference/lexical_analysis.html#id7

Often docstrings are expressed as three-quoted strings, because they want to exceed a single line.

Glenn,
thanks for the clarification,
English is not my first language, nor is Python ;-)
I already updated the webpage.

cheers,
Stef

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to