Eric V. Smith added the comment:
An empty format specifier can (and to my knowledge, does) match str(). So you get:
The SO question is asking about an empty "presentation type", which is indeed similar to 'g' for floats.
I think this is all the same in 2.7 and 3.4, with the exception of how str() might operate on floats.
---------- nosy: +eric.smith