[Python-ideas] Deprecating rarely used str methods

Chris Angelico rosuav at gmail.com
Sat Aug 10 00:11:15 CEST 2013


On Fri, Aug 9, 2013 at 9:25 PM,  <random832 at fastmail.us> wrote:
> I would add str % stuff to the list of things that should be
> deprecated... has anyone done any work on a converter for that, that
> could be included in a hypothetical 3to4?

Why should it be deprecated, though? This keeps coming up - it's too
useful to throw away. The sprintf codes are well known from other
languages, and they're expressive. The only change I might support
would be making it an actual function 'sprintf' rather than an
operator on the str class, but that feels like bikeshedding and
completely unnecessary incompatibility.

ChrisA


More information about the Python-ideas mailing list