Message238263
Only one detail to resolve: you say "format is quite capable of handing a variable width field".
It does, but not in a really nice way. Honestly, would you really rather see
"{:^{}}".format(title, width)
than
title.center(width)
? Nested formats are ugly, I think that's a consensus. :-) Not to mention that .center is more explicit about what's going on - that "^" is almost lost in that brace-forest. |
|
Date |
User |
Action |
Args |
2015-03-17 06:42:32 | veky | set | recipients:
+ veky, rhettinger, eric.smith, r.david.murray, serhiy.storchaka |
2015-03-17 06:42:32 | veky | set | messageid: <1426574552.64.0.482602225353.issue23624@psf.upfronthosting.co.za> |
2015-03-17 06:42:32 | veky | link | issue23624 messages |
2015-03-17 06:42:32 | veky | create | |
|