# HG changeset patch # User Atul Varma # Date 1212755704 25200 # Node ID ace6f51e84e043801006f23c4e402a3533adeb4e # Parent 57bae3eba6e30d6801a3084d153a331e6809669f Rephrasing diff -r 57bae3eba6e3 -r ace6f51e84e0 PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Fri Jun 06 00:19:39 2008 -0700 +++ b/PythonForJsProgrammers.txt Fri Jun 06 05:35:04 2008 -0700 @@ -179,12 +179,9 @@ True But there's some elements of C-like expressions that aren't supported, -because they tend to be more trouble than they're worth. The ``++`` -and ``--`` unary assignment operators aren't part of the -language, and nor is JavaScript's ``===`` comparison operator. - -Some constructs that can be used in expressions in C-like languages -can only be used in statements in Python: +because they tend to be more trouble than they're worth. For +instance, some constructs that can be used in expressions in C-like +languages can only be used in statements in Python: >>> a = 5 # Assignment works in statements. >>> a += 1 # Add-assignment does too. @@ -194,6 +191,11 @@ ... SyntaxError: invalid syntax +The ``++`` and ``--`` unary assignment operators aren't part of the +Python language, and nor is JavaScript's ``===`` comparison operator +(Python's ``==`` can be considered to behave like JavaScript's +``===``). + Nothingness ===========