Message85489
This isn't testing what I thought it was testing. I'd forgotten that
format(x, '') is exactly equivalent to str(x).
The better test is using a format string of '<':
>>> 1e200.__format__('<')
'1.0e+200'
>>> 1e200.__format__('<g')
'1e+200'
So this is a non-issue: the current behavior matches the PEP
description. The online docs could still be tweaked, though. |
|
Date |
User |
Action |
Args |
2009-04-05 13:26:39 | eric.smith | set | recipients:
+ eric.smith, mark.dickinson |
2009-04-05 13:26:39 | eric.smith | set | messageid: <1238937999.16.0.513375086315.issue5686@psf.upfronthosting.co.za> |
2009-04-05 13:26:36 | eric.smith | link | issue5686 messages |
2009-04-05 13:26:36 | eric.smith | create | |
|