[Python-ideas] Deprecating rarely used str methods
Bruce Leban
bruce at leapyear.org
Fri Aug 9 10:25:25 CEST 2013
On Aug 8, 2013 12:42 PM, "Serhiy Storchaka" <storchaka at gmail.com> wrote:
> you can write just
>
> print('|%-20s|%8s|' % (name, value))
>
> or
>
> print('|{:<20}|{:>8}|'.format(name, value))
>
> which are shorter and cleaner.
In what universe are those cleaner? I have to think much harder to figure
out what they mean and a typo may completely mangle it w/o failing.
Deprecation should be used for removing things that cause problems not for
"cleaning up" things that are working fine. If it ain't broke don't fix it.
--- Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130809/84c0e4c2/attachment.html>
More information about the Python-ideas
mailing list