# HG changeset patch # User Atul Varma # Date 1212735690 25200 # Node ID 70f7edc3e3d4975ab2cb6e718d3b2d67e6539338 # Parent dce1c0e80dfb8c5adb3710aaacd1abf9b2a48797 Wording changes. diff -r dce1c0e80dfb -r 70f7edc3e3d4 PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Thu Jun 05 23:58:45 2008 -0700 +++ b/PythonForJsProgrammers.txt Fri Jun 06 00:01:30 2008 -0700 @@ -45,7 +45,7 @@ } Why does the programmer have to write more code to tell the computer -something it should already be able to understand from the use of +something it should already be able to infer from the use of whitespace? This is actually a violation of the `Don't Repeat Yourself`_ (DRY) @@ -61,10 +61,10 @@ when it processes the code. This reduces the burden on the programmer from having to repeat their intent in multiple different ways. -So, you won't see any brackets in Python. Instead, if a statement ends -with a colon, the next statement needs to be indented and begins a new -block. The block ends as soon as a line is encountered that's -unindented at least one level, like so:: +So, you won't see any brackets in Python. Instead, if a statement +ends with a colon, the next statement needs to be indented and begins +a new block. The block ends as soon as an unindented line is +encountered, like so:: if someVar == 1: doSomething()