mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Remove tabs from the documentation.
This commit is contained in:
parent
c62ef8b4d9
commit
7044b11818
20 changed files with 163 additions and 166 deletions
|
|
@ -251,7 +251,7 @@ would evaluate to a tuple, it must be parenthesized. ::
|
|||
[]
|
||||
>>> [[x,x**2] for x in vec]
|
||||
[[2, 4], [4, 16], [6, 36]]
|
||||
>>> [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