New submission from Hagen Fürstenau <[EMAIL PROTECTED]>: This happens with an empty type field in the format specification:
>>> "{0:1}".format(-1.23) '.0-1.23' With type "g" it's ok: >>> "{0:1g}".format(-1.23) '-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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue3411> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com