string formatting

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri May 6 10:33:01 EDT 2011


On Fri, 06 May 2011 14:10:17 +0200, Web Dreamer wrote:

> What I would like to know is the difference between "deprecated" and
> "obsolete"...


Writing x*x instead of x**2 is obsolete, but it will never go away.

Writing apply(func, args) instead of func(*args) is deprecated. It has 
gone away.

Obsolete is a value judgment you are welcome to ignore. Deprecation is a 
formal process that warns you that your code *will* break in the future.

-- 
Steven



More information about the Python-list mailing list