Mercurial > python-for-js-programmers
changeset 49:d3f486bfd354
Fixed a reference to __doc__.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 10 Jun 2008 23:22:16 -0700 |
parents | 852f069c23b7 |
children | ddcbdec075bc |
files | PythonForJsProgrammers.txt |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/PythonForJsProgrammers.txt Tue Jun 10 23:15:17 2008 -0700 +++ b/PythonForJsProgrammers.txt Tue Jun 10 23:22:16 2008 -0700 @@ -327,7 +327,7 @@ ... "Does something useless" ... pass -As mentioned earlier, this string is called the docstring, and is +As mentioned earlier, this string is called the docstring; it's actually attached to the function object as its ``__doc__`` attribute. Creating docstrings for your functions not only helps document your code, but also makes it easier for Python users to interactively