# HG changeset patch # User Atul Varma # Date 1212785288 25200 # Node ID a7ea59542904d3dfd825a41d6fcac4fed9d51a15 # Parent 2a9697cc9e558cbd87eb290cb3ea21e32efb9e8b Minor style change diff -r 2a9697cc9e55 -r a7ea59542904 PythonForJsProgrammers.html --- a/PythonForJsProgrammers.html Fri Jun 06 13:46:27 2008 -0700 +++ b/PythonForJsProgrammers.html Fri Jun 06 13:48:08 2008 -0700 @@ -726,8 +726,8 @@

As mentioned at the beginning of this document, some of JavaScript's latest features have been borrowed directly from Python.

In particular, generators, iterators, generator expressions, -and list comprehensions work almost identically to their JavaScript -1.7 counterparts.

+and list comprehensions work almost identically to their JavaScript +1.7 counterparts.

Caveats

diff -r 2a9697cc9e55 -r a7ea59542904 PythonForJsProgrammers.txt --- a/PythonForJsProgrammers.txt Fri Jun 06 13:46:27 2008 -0700 +++ b/PythonForJsProgrammers.txt Fri Jun 06 13:48:08 2008 -0700 @@ -667,14 +667,14 @@ latest features have been borrowed directly from Python. In particular, `generators`_, `iterators`_, `generator expressions`_, -and `list comprehensions`_ work almost identically to their JavaScript -1.7 `counterparts`_. +and `list comprehensions`_ work almost identically to their `JavaScript +1.7 counterparts`_. .. _`generators`: http://www.python.org/dev/peps/pep-0255/ .. _`iterators`: http://docs.python.org/lib/typeiter.html .. _`generator expressions`: http://www.python.org/dev/peps/pep-0289/ .. _`list comprehensions`: http://docs.python.org/tut/node7.html#SECTION007140000000000000000 -.. _`counterparts`: http://wiki.ecmascript.org/doku.php?id=proposals:iterators_and_generators +.. _`JavaScript 1.7 counterparts`: http://wiki.ecmascript.org/doku.php?id=proposals:iterators_and_generators Caveats =======