More typos.
This commit is contained in:
parent
9d28e9ee71
commit
eb9b98c932
|
@ -80,7 +80,7 @@ To be defensive, the following code should be used::
|
||||||
|
|
||||||
str.format() was added to address some of these problems with
|
str.format() was added to address some of these problems with
|
||||||
%-formatting. In particular, it uses normal function call syntax (and
|
%-formatting. In particular, it uses normal function call syntax (and
|
||||||
therefor supports mutliple parameters) and it is extensible through
|
therefor supports multiple parameters) and it is extensible through
|
||||||
the __format__() method on the object being converted to a string. See
|
the __format__() method on the object being converted to a string. See
|
||||||
PEP-3101 for a detailed rationale. This PEP reuses much of the
|
PEP-3101 for a detailed rationale. This PEP reuses much of the
|
||||||
str.format() syntax and machinery, in order to provide continuity with
|
str.format() syntax and machinery, in order to provide continuity with
|
||||||
|
@ -248,7 +248,6 @@ part of this lookup. Thus::
|
||||||
But::
|
But::
|
||||||
|
|
||||||
>>> 'name={name:10}'.interpolate({'name:10': name})
|
>>> 'name={name:10}'.interpolate({'name:10': name})
|
||||||
'name=Guido '
|
|
||||||
Traceback (most recent call last):
|
Traceback (most recent call last):
|
||||||
File "<stdin>", line 1, in <module>
|
File "<stdin>", line 1, in <module>
|
||||||
KeyError: 'name'
|
KeyError: 'name'
|
||||||
|
|
Loading…
Reference in New Issue