Eric V. Smith added the comment:
The "s" causes the argument to be converted to a string, then the formatting is
applied. So it's working as designed.
This is the logical equivalent of:
'%8.8s' % str(101.)
--
nosy: +eric.smith
resolution: -> invalid
status: open -> closed
__
New submission from mesheb82 :
I’m running:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on
win32
I was testing out some print functionality and I made an error in typing (I
meant to use %8.8f), but is this behavior intentional or is it an error?
>> print '%8.8s