string formatting documentation

Alan G Isaac alan.isaac at gmail.com
Tue Jan 20 01:30:22 EST 2009


On 1/19/2009 3:03 PM John Machin apparently wrote:
> It is not deprecated YET; see this:
> 
> http://docs.python.org/3.0/whatsnew/3.0.html#changes-already-present-in-python-2-6
> 
> PEP 3101: Advanced String Formatting. Note: the 2.6 description
> mentions the format() method for both 8-bit and Unicode strings. In
> 3.0, only the str type (text strings with Unicode support) supports
> this method; the bytes type does not. The plan is to eventually make
> this the only API for string formatting, and to start deprecating the
> % operator in Python 3.1.


Thanks!
Alan Isaac



More information about the Python-list mailing list