Title: "What's new in 3.0" says % operator will be deprecated in 3.1
Type: Stage:
Components: Documentation Versions: Python 3.0
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: brett.cannon, eric.smith, georg.brandl, jaredgrubb, rhettinger
Priority: normal Keywords:

Created on 2009-11-18 05:46 by jaredgrubb, last changed 2009-11-18 19:22 by rhettinger. This issue is now closed.

Messages (3)
msg95411 - (view) Author: Jared Grubb (jaredgrubb) Date: 2009-11-18 05:46
The existing text:
"A new system for built-in string formatting operations replaces the %
string formatting operator. (However, the % operator is still supported;
it will be deprecated in Python 3.1 and removed from the language at
some later time.) Read PEP 3101 for the full scoop."

Python 3.1 did not deprecate the % operator, right? Is it appropriate to
edit the 3.0 docs to reflect that?
msg95437 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2009-11-18 18:38
The % operator has not been deprecated, although talk of removing it 
flares up from time to time. We are still encouraging people to use the 
new str.format().
msg95443 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2009-11-18 19:21
Fixed in r76372:

* :ref:`pep-3101`.  Note: the 2.6 description mentions the
  :meth:`format` method for both 8-bit and Unicode strings.  In 3.0,
  only the :class:`str` type (text strings with Unicode support)
  supports this method; the :class:`bytes` type does not.  The plan is
  to make this the preferred API for string formatting and to
  de-emphasize the ``%`` string formatting operator.
Date User Action Args
2009-11-18 19:22:00rhettingersetstatus: open -> closed

nosy: + rhettinger
messages: + msg95443

resolution: fixed
2009-11-18 19:12:30eric.smithsetnosy: + eric.smith
2009-11-18 18:38:39brett.cannonsetnosy: + brett.cannon
messages: + msg95437
2009-11-18 05:46:03jaredgrubbcreate