Formatting floating point

boffi boffi at format.org
Mon Oct 7 11:04:15 EDT 2019


DL Neil <PythonList at DancesWithMice.info> writes:

> Agreed: there's ton(ne)s of information 'out there', much of it old,
> eg Python2, "formatter" (deprecated since v3.4)

?

are you referring to the `string.Formatter`[*] class?

    $ python
    Python 3.7.4 (default, Aug 13 2019, 20:35:49) 
    [GCC 7.3.0] :: Anaconda, Inc. on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from string import Formatter
    >>> 

if not, what else?

g

[*] https://docs.python.org/2/library/string.html#string.Formatter
    https://docs.python.org/3.7/library/string.html#string.Formatter



More information about the Python-list mailing list