Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!81.171.88.16.MISMATCH!hq-usenetpeers.eweka.nl!hq-usenetpeers.eweka.nl!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.04; 'languages.': 0.04; 'string': 0.09; 'bug.': 0.09; 'formatting': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'jan': 0.12; '(x,': 0.16; '24,': 0.16; 'compatible.': 0.16; 'deprecated,': 0.16; 'formatting!': 0.16; 'formatting.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'notation,': 0.16; 'old-style': 0.16; 'sat,': 0.16; 'student': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'especially': 0.30; 'message- id:@mail.gmail.com': 0.30; 'please.': 0.31; 'yesterday': 0.31; 'but': 0.35; 'received:google.com': 0.35; "didn't": 0.36; 'thanks': 0.36; 'wrong': 0.37; 'being': 0.38; 'subject:. ': 0.67; '2015': 0.84; '3:00': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=5+faqld3ndm+m6sxM+AAYqOzfP3iuXG7g7t8aPx6EIo=; b=IWHmvy5EV9tdueroaE87JFZDgQqQiujEczCnQFglHvmrAwVRx2W9QUC0HwhZTQn9Wc Kx/EsUkjE3ucgZ1wxy6GDOJSCTtWe62R4twwlPS42dV3Mbizpw4X3rkXvYkw6ksc/71E Rq6RH80D6MFvhj9Y4e1TNMaQBAmluTWe7GXioeu2QpOzf544CxdDzkQ1aPe/dH4QtAA1 vrzjD5wcAdvfMfR5GF4lYG7G2jgVTPEGkOFWIb+Y8U2UTYh71NTUe6vmkXLjcSpgwoWG tTZExizGbVAGPTCrtQWkR2g7lrc991sevbMVqCpTw2Kv01qGbp8nKzuPAN5GJcUoaSxu 82/g== MIME-Version: 1.0 X-Received: by 10.140.97.203 with SMTP id m69mr15542393qge.39.1422035325917; Fri, 23 Jan 2015 09:48:45 -0800 (PST) In-Reply-To: References: <87twzh34r6.fsf@elektro.pacujo.net> Date: Sat, 24 Jan 2015 04:48:45 +1100 Subject: Re: [OT] absolute vs. relative URI From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422035333 news.xs4all.nl 2847 [2001:888:2000:d::a6]:56176 X-Complaints-To: abuse@xs4all.nl X-Received-Body-CRC: 1857546375 X-Received-Bytes: 3809 Xref: csiph.com comp.lang.python:84367 On Sat, Jan 24, 2015 at 3:00 AM, Chris Warrick wrote: > 5. especially old-style %-based string formatting! Please. There's nothing wrong with %-style formatting. It's not deprecated, and never will be; and it has the advantage of being cross-language compatible. I was speaking with a Python student yesterday who didn't understand the {} notation, but grokked "%d + %d = %d" % (x, y, x+y) instantly, thanks to experience with other languages. Use of % formatting is not a bug. ChrisA