Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45703
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ethan@stoneleaf.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'tutorial': 0.03; 'formatting': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'subject:language': 0.09; '~ethan~': 0.09; 'python': 0.11; 'language,': 0.12; 'issue?': 0.16; 'operator.': 0.16; 'outdated': 0.16; 'str.format()': 0.16; 'subject: \n ': 0.16; 'uses,': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'new,': 0.24; 'subject:will': 0.24; 'header:In- Reply-To:1': 0.27; 'generally': 0.29; 'code': 0.31; 'quite': 0.32; 'style': 0.33; 'subject:the': 0.34; 'subject:from': 0.34; 'something': 0.35; 'should': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'eventually': 0.60; 'subject:"': 0.60; 'received:173': 0.61; 'first': 0.61; 'received:69.56': 0.68; 'soon.': 0.71; 'subject:this': 0.83; 'received:69.56.148': 0.84; 'carlos': 0.91 |
| Date | Tue, 21 May 2013 19:37:32 -0700 |
| From | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" |
| References | <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> |
| In-Reply-To | <BLU176-W25D89313A094EE7C675E0DD7A90@phx.gbl> |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - gator410.hostgator.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - stoneleaf.us |
| X-BWhitelist | no |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Source-Sender | ([173.12.184.235]) [173.12.184.235]:51343 |
| X-Source-Auth | ethan+stoneleaf.us |
| X-Email-Count | 2 |
| X-Source-Cap | dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== |
| 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.1948.1369193191.3114.python-list@python.org> (permalink) |
| Lines | 13 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1369193191 news.xs4all.nl 15904 [2001:888:2000:d::a6]:43893 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:45703 |
Show key headers only | View raw
On 05/21/2013 07:26 PM, Carlos Nepomuceno wrote: > 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? It was exuberant wishful thinking. ;) While .format() does have its uses, % is in wide-spread use even among the core-devs. It's not going away any time soon. -- ~Ethan~
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Myth Busters: % "this old style of formatting will eventually be removed from the language" Ethan Furman <ethan@stoneleaf.us> - 2013-05-21 19:37 -0700
csiph-web