Typo fixes
This commit is contained in:
parent
ab9b144a7d
commit
469498ea6e
|
@ -33,7 +33,7 @@ is no longer needed, delete the list::
|
|||
|
||||
sum([x*x for x in range(10)])
|
||||
|
||||
Memory is conserved by using an generator expession instead::
|
||||
Memory is conserved by using a generator expession instead::
|
||||
|
||||
sum(x*x for x in range(10))
|
||||
|
||||
|
@ -162,7 +162,7 @@ semantic and syntactic specification.)
|
|||
|
||||
3. The loop variable (if it is a simple variable or a tuple of simple
|
||||
variables) is not exposed to the surrounding function. This
|
||||
facilates the implementation and makes typical use cases more
|
||||
facilitates the implementation and makes typical use cases more
|
||||
reliable. In some future version of Python, list comprehensions
|
||||
will also hide the induction variable from the surrounding code
|
||||
(and, in Py2.4, warnings will be issued for code accessing the
|
||||
|
|
Loading…
Reference in New Issue