Why are they? Re: Module Documentation Strings
William Tanksley
wtanksle at dolphin.openprojects.net
Sun Apr 4 00:49:07 EST 1999
On Sat, 3 Apr 1999 20:38:37 -0500, evil Japh wrote:
>Why are there documentation strings?
>I mean, granted it would be very bad if the next version of python did not
>support them, but why not just use comment lines?
Because comment lines are only visible within the source. Docstrings may be
accessed from anywhere, without any knowledge of the source.
>Jeff Pinyan (jeffp at crusoe.net)
--
-William "Billy" Tanksley
"But you shall not escape my iambics."
-- Gaius Valerius Catullus
More information about the Python-list
mailing list