On Tue, 21 Jan 2020 09:01:29 -0600
"Karl O. Pinc" wrote:
> I guess I will advocate for _some_ specification built into Python's
> definition. Otherwise everybody should _always_ build their own
> formatter; lest they wake up one morning and find that int zero prints
&
On Tue, 21 Jan 2020 21:09:57 +1100
Steven D'Aprano wrote:
> On Mon, Jan 20, 2020 at 09:59:07PM -0600, Karl O. Pinc wrote:
>
> > It would be nice if the output format for float was documented, to
> > the extent this is possible.
>
> I don't think we shoul
Hello,
There appears to be extremely minimal documentation on how floats are
formatted on output. All I really see is that float.__str__() is
float.__repr__(). So that means that float->str->float does not
result in a different value.
It would be nice if the output format for float was document