
Feb. 11, 2009
10:24 p.m.
On Wed, Feb 11, 2009 at 1:18 PM, Adam Olsen <rhamph@gmail.com> wrote:
On Wed, Feb 11, 2009 at 5:09 AM, Lie Ryan <lie.1296@gmail.com> wrote:
Is % interpolation deprecated? I've never heard of that...
There's no plans to remove it in the near future, so it's not deprecated, and there's no problem using it when it's convenient.
However, .format() obsoletes it. .format() is significantly more powerful for reasons just like this. There's no reason to add new features to % interpolation with .format() around.
I thought the plan was to start deprecating % in 3.1 and remove it at some later release (maybe 3.3). Or did I miss a reversal on this? -- --Guido van Rossum (home page: http://www.python.org/~guido/)