New submission from Eric Smith <e...@trueblade.com>:

The point of the empty type code is to make sure a number looks like a
float (so as to avoid formatting 2.0 as "2"). But if we have an
exponent, the result already looks like a float, so there's no need to
modify the number further.

----------
assignee: eric.smith
components: Interpreter Core
keywords: easy
messages: 86021
nosy: eric.smith, marketdickinson
priority: normal
severity: normal
status: open
title: For float.__format__, don't add a trailing ".0" if we're using no type 
code and we have an exponent
type: behavior
versions: Python 2.7, Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to