Message238444
I agree with David: It's unfortunate, but too late to change.
FWIW, since the goal is to replace just str.center, I'd write this as:
def my_center(s, width):
return format(s, '^' + str(width))
As soon as you're mixing in other formatting, then str.center couldn't have been used, anyway, so no sense bringing all of str.format to bear on the problem. |
|
Date |
User |
Action |
Args |
2015-03-18 13:54:52 | eric.smith | set | recipients:
+ eric.smith, rhettinger, r.david.murray, serhiy.storchaka, veky |
2015-03-18 13:54:52 | eric.smith | set | messageid: <1426686892.9.0.860804378754.issue23624@psf.upfronthosting.co.za> |
2015-03-18 13:54:52 | eric.smith | link | issue23624 messages |
2015-03-18 13:54:52 | eric.smith | create | |
|