osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Formatting floating point


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