# HG changeset patch # User Atul Varma # Date 1213165336 25200 # Node ID d3f486bfd35443134b434041dfd02b8eff4fcaf8 # Parent 852f069c23b7bb2d279424a358a7a893a519b6ad Fixed a reference to __doc__. diff -r 852f069c23b7 -r d3f486bfd354 PythonForJsProgrammers.txt --- 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