Message332271
| Author |
serhiy.storchaka |
| Recipients |
bignose, eric.smith, serhiy.storchaka |
| Date |
2018年12月20日.22:10:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1545343812.13.0.788709270274.issue27772@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|