mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Update list of supported types.
This commit is contained in:
parent
fee346b5c4
commit
c548b6e724
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ program's output, improving its professional appearance and readability::
|
||||||
>>> format(Decimal('1234567.89'), ',f')
|
>>> format(Decimal('1234567.89'), ',f')
|
||||||
'1,234,567.89'
|
'1,234,567.89'
|
||||||
|
|
||||||
The currently supported types are :class:`int` and :class:`decimal.Decimal`.
|
The supported types are :class:`int`, :class:`float` and :class:`decimal.Decimal`.
|
||||||
Support for :class:`float` is expected before the beta release.
|
|
||||||
Discussions are underway about how to specify alternative separators
|
Discussions are underway about how to specify alternative separators
|
||||||
like dots, spaces, apostrophes, or underscores. Locale-aware applications
|
like dots, spaces, apostrophes, or underscores. Locale-aware applications
|
||||||
should use the existing *n* format specifier which already has some support
|
should use the existing *n* format specifier which already has some support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue