Mercurial > python-for-js-programmers
changeset 39:b3fdf83125c2
Minor wording changes suggested by aza
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Fri, 06 Jun 2008 12:54:07 -0700 |
parents | eccfb8efc186 |
children | 741b0e6cd9ac |
files | PythonForJsProgrammers.txt |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/PythonForJsProgrammers.txt Fri Jun 06 12:35:18 2008 -0700 +++ b/PythonForJsProgrammers.txt Fri Jun 06 12:54:07 2008 -0700 @@ -51,10 +51,10 @@ whitespace? This is actually a violation of the `Don't Repeat Yourself`_ (DRY) -principle popularized by Andy Hunt and Dave Thomas. Because unneeded -extra work is required when moving from a single-line clause to a +principle popularized by Andy Hunt and Dave Thomas. Because extra +work is required when moving from a single-line clause to a multiple-line clause, it's a constant source of errors in C-like -languages, and many stylistic rules and arguments have been spawned as +languages, and stylistic rules and arguments have been spawned as a result of this mistake in language design. Python is one of the few languages that takes the simpler and more @@ -111,7 +111,8 @@ If there's a function you're interested in learning more about, you can look at the built-in documentation metadata associated with the object--known as the `docstring`--by querying the object's ``__doc__`` -attribute: +attribute. For instance, here's how to get help on the string +object's ``join()`` method: >>> print "a string".join.__doc__ S.join(sequence) -> string @@ -119,8 +120,7 @@ Return a string which is the concatenation of the strings in the sequence. The separator between elements is S. -This makes it very easy and fun to explore the language and its -environs. +This makes it easy and fun to explore the language and its environs. Batteries Included ==================