This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zach.ware
Recipients ana, docs@python, zach.ware
Date 2018-02-01.00:13:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517443985.88.0.467229070634.issue32737@psf.upfronthosting.co.za>
In-reply-to
Content
I think you need to clarify with whoever is restricting your Python version which version you can actually use: Python 3.0.1 has been out of support for the better part of 10 years now and hardly anybody ever actually used that particular version (aside from me :))

I have confirmed that Python 3.6 (the oldest version which would receive a fix for this at this point) behaves as expected:

In [1]: '{0:f}'.format(float('nan'))
Out[1]: 'nan'

In [2]: '{0:F}'.format(float('nan'))
Out[2]: 'NAN'

In [3]: '{0:g}'.format(float('nan'))
Out[3]: 'nan'

In [4]: '{0:G}'.format(float('nan'))
Out[4]: 'NAN'

In [5]: '{0:.2f}'.format(float('nan'))
Out[5]: 'nan'
History
Date User Action Args
2018-02-01 00:13:05zach.waresetrecipients: + zach.ware, docs@python, ana
2018-02-01 00:13:05zach.waresetmessageid: <1517443985.88.0.467229070634.issue32737@psf.upfronthosting.co.za>
2018-02-01 00:13:05zach.warelinkissue32737 messages
2018-02-01 00:13:05zach.warecreate