# HG changeset patch # User Atul Varma # Date 1212782047 25200 # Node ID b3fdf83125c272431649adb6e4308cfa37db1272 # Parent eccfb8efc18655af0ca2f00af35095dd32a5e2db Minor wording changes suggested by aza diff -r eccfb8efc186 -r b3fdf83125c2 PythonForJsProgrammers.txt --- 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 ==================