mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Merged revisions 68221 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68221 | georg.brandl | 2009-01-03 22:04:55 +0100 (Sat, 03 Jan 2009) | 2 lines Remove tabs from the documentation. ........
This commit is contained in:
parent
48310cd3f2
commit
a1c6a1cea5
18 changed files with 148 additions and 152 deletions
|
@ -195,7 +195,7 @@ Using the :keyword:`if` clause we can filter the stream::
|
|||
|
||||
Tuples can often be created without their parentheses, but not here::
|
||||
|
||||
>>> [x, x**2 for x in vec] # error - parens required for tuples
|
||||
>>> [x, x**2 for x in vec] # error - parens required for tuples
|
||||
File "<stdin>", line 1, in ?
|
||||
[x, x**2 for x in vec]
|
||||
^
|
||||
|
|
|
@ -62,7 +62,7 @@ formatting numbers with group separators::
|
|||
>>> locale.format("%d", x, grouping=True)
|
||||
'1,234,567'
|
||||
>>> locale.format("%s%.*f", (conv['currency_symbol'],
|
||||
... conv['frac_digits'], x), grouping=True)
|
||||
... conv['frac_digits'], x), grouping=True)
|
||||
'$1,234,567.80'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue