Message332271
PR 11270 fixes this issue by making such format valid. Preceding the width field by '0' no longer affects the default alignment for strings, i.e. no longer sets the alignment to invalid '=' if it is not specified explicitly.
>>> format('abc', '<8')
'abc '
>>> format('abc', '8')
'abc '
>>> format('abc', '<08')
'abc00000'
>>> format('abc', '08')
'abc00000'
This does not contradict the documentation, which specifies this case for numeric types, but not for strings. |
|
Date |
User |
Action |
Args |
2018-12-20 22:10:12 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, eric.smith, bignose |
2018-12-20 22:10:12 | serhiy.storchaka | set | messageid: <1545343812.13.0.788709270274.issue27772@psf.upfronthosting.co.za> |
2018-12-20 22:10:12 | serhiy.storchaka | link | issue27772 messages |
2018-12-20 22:10:11 | serhiy.storchaka | create | |
|