[issue3411] str.format() on negative floats

Hagen Fürstenau report at bugs.python.org
Fri Jul 18 22:09:22 CEST 2008

New submission from Hagen Fürstenau <hfuerstenau at gmx.net>:

This happens with an empty type field in the format specification:

>>> "{0:1}".format(-1.23)

With type "g" it's ok:

>>> "{0:1g}".format(-1.23)

components: Library (Lib)
messages: 69988
nosy: hagen
severity: normal
status: open
title: str.format() on negative floats
versions: Python 2.6, Python 3.0

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list