Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #45696

Myth Busters: % "this old style of formatting will eventually be removed from the language"

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <carlosnepomuceno@outlook.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'tutorial': 0.03; 'formatting': 0.09; 'subject:language': 0.09; 'python': 0.11; 'issue?': 0.16; 'outdated': 0.16; 'subject: \n ': 0.16; 'to:name :python-list@python.org': 0.22; 'new,': 0.24; 'received:65.55.116': 0.24; 'subject:will': 0.24; 'skip:" 20': 0.27; '[1]': 0.29; 'generally': 0.29; 'code': 0.31; 'quite': 0.32; 'url:python': 0.33; 'style': 0.33; 'subject:the': 0.34; 'subject:from': 0.34; 'something': 0.35; '8bit%:9': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'eventually': 0.60; 'subject:"': 0.60; 'first': 0.61; 'subject:this': 0.83
X-TMN [JkF+eVlgHJYXoDqeoC00bMQ0BBORhFaH]
X-Originating-Email [carlosnepomuceno@outlook.com]
From Carlos Nepomuceno <carlosnepomuceno@outlook.com>
To "python-list@python.org" <python-list@python.org>
Subject Myth Busters: % "this old style of formatting will eventually be removed from the language"
Date Wed, 22 May 2013 05:26:11 +0300
Importance Normal
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-OriginalArrivalTime 22 May 2013 02:26:12.0140 (UTC) FILETIME=[BA0516C0:01CE5693]
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1944.1369189574.3114.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1369189574 news.xs4all.nl 15881 [2001:888:2000:d::a6]:47920
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:45696

Show key headers only | View raw


I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]:

"Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting will eventually be removed from the language, str.format() should generally be used."

Is this tutorial outdated or this still an issue?

[1] http://docs.python.org/2/tutorial/inputoutput.html#old-string-formatting 		 	   		  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Myth Busters: % "this old style of formatting will eventually be removed from the language" Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-22 05:26 +0300

csiph-web