Eric Smith <e...@trueblade.com> added the comment:

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.

----------
resolution:  -> invalid
status: open -> closed

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

Reply via email to