[issue3411] str.format() on negative floats

2008-07-18 Thread Eric Smith
Eric Smith <[EMAIL PROTECTED]> added the comment: Thanks for catching this. I was not skipping the leading sign char when looking for the decimal point in the string, which was causing me to incorrectly determine that a decimal wasn't present. Fixed in r65125 (trunk) and r65126 (py3k). ---

[issue3411] str.format() on negative floats

2008-07-18 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3411] str.format() on negative floats

2008-07-18 Thread Hagen Fürstenau
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: