Kaydet (Commit) 132ac381 authored tarafından Jim Fasarakis-Hilliard's avatar Jim Fasarakis-Hilliard Kaydeden (comit) Mariatta

Fix small typos in expressions.rst (GH-276)

üst fba79dc5
...@@ -190,7 +190,7 @@ Since Python 3.6, in an :keyword:`async def` function, an :keyword:`async for` ...@@ -190,7 +190,7 @@ Since Python 3.6, in an :keyword:`async def` function, an :keyword:`async for`
clause may be used to iterate over a :term:`asynchronous iterator`. clause may be used to iterate over a :term:`asynchronous iterator`.
A comprehension in an :keyword:`async def` function may consist of either a A comprehension in an :keyword:`async def` function may consist of either a
:keyword:`for` or :keyword:`async for` clause following the leading :keyword:`for` or :keyword:`async for` clause following the leading
expression, may contan additonal :keyword:`for` or :keyword:`async for` expression, may contain additional :keyword:`for` or :keyword:`async for`
clauses, and may also use :keyword:`await` expressions. clauses, and may also use :keyword:`await` expressions.
If a comprehension contains either :keyword:`async for` clauses If a comprehension contains either :keyword:`async for` clauses
or :keyword:`await` expressions it is called an or :keyword:`await` expressions it is called an
...@@ -1317,7 +1317,7 @@ built-in types. ...@@ -1317,7 +1317,7 @@ built-in types.
* Sequences (instances of :class:`tuple`, :class:`list`, or :class:`range`) can * Sequences (instances of :class:`tuple`, :class:`list`, or :class:`range`) can
be compared only within each of their types, with the restriction that ranges be compared only within each of their types, with the restriction that ranges
do not support order comparison. Equality comparison across these types do not support order comparison. Equality comparison across these types
results in unequality, and ordering comparison across these types raises results in inequality, and ordering comparison across these types raises
:exc:`TypeError`. :exc:`TypeError`.
Sequences compare lexicographically using comparison of corresponding Sequences compare lexicographically using comparison of corresponding
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment