changeset 32:ace6f51e84e0

Rephrasing
author Atul Varma <varmaa@toolness.com>
date Fri, 06 Jun 2008 05:35:04 -0700
parents 57bae3eba6e3
children 7bd041383b45
files PythonForJsProgrammers.txt
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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
 ===========