➜

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.

作者 mark.dickinson
收信人 cdavid, cito, dino.viehland, eric.smith, mark.dickinson, stutzbach
日期 2009-04-22.22:46:07
SpamBayes Score 0.005259893
Marked as misclassified 否
Message-id <1240440369.78.0.295171052783.issue4482@psf.upfronthosting.co.za>
In-reply-to
内容
> Maybe if you explicitly ask for the "sign" of a NaN, it should
> always be a space.

Actually, I think '+nan' for format(float('nan'), '+'), and ' nan'
for format(float('nan'), ' ').  Then nans and infs can be treated 
identically, except that the sign of a nan is always considered to be 
positive, regardless of what the _Py_dg_dtoa function returns.

> And when requesting leading zeros, you also get leading spaces
> instead?

Should do the same thing for nans and infs here.  But certainly leading 
zeros should be avoided.  Leading spaces sounds fine to me.
历史
日期 用户 动作 参数
2009-04-22 22:46:09mark.dickinson修改recipients: + mark.dickinson, cito, eric.smith, stutzbach, cdavid, dino.viehland
2009-04-22 22:46:09mark.dickinson修改messageid: <1240440369.78.0.295171052783.issue4482@psf.upfronthosting.co.za>
2009-04-22 22:46:08mark.dickinson链接issue4482 messages
2009-04-22 22:46:07mark.dickinson创建