A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-April/089032.html below:

[Python-Dev] Two proposed changes to float formatting

[Python-Dev] Two proposed changes to float formatting [Python-Dev] Two proposed changes to float formattingMichael Foord fuzzyman at voidspace.org.uk
Sun Apr 26 15:10:50 CEST 2009
Steven D'Aprano wrote:
> On Sun, 26 Apr 2009 08:06:56 pm Mark Dickinson wrote:
>   
>> I'd like to propose two minor changes to float and complex
>> formatting, for 3.1.  I don't think either change should prove
>> particularly disruptive.
>>
>> (1) Currently, '%f' formatting automatically changes to '%g'
>> formatting for numbers larger than 1e50.
>>     
> ...
>   
>> I propose removing this feature for 3.1
>>     
>
> No objections from me. +1
>
>   
>> I propose changing the complex str and repr to behave like the
>> float version.  That is, repr(4. + 10.j) should be "(4.0 + 10.0j)"
>> rather than "(4+10j)".
>>     
>
> No objections here either. +0
>
>
>
>   
Doing it sooner rather than later means that it is less likely to 
disrupt anyone relying on the representation (i.e. doctests).

Michael

-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4