Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #48965
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'parameters': 0.04; 'string': 0.09; '22,': 0.09; 'arguments': 0.09; 'separating': 0.09; 'so?': 0.09; 'subject:question': 0.10; 'translation': 0.12; '23,': 0.16; 'callable.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'literals': 0.16; 'reason.': 0.16; 'wrote:': 0.18; "python's": 0.19; 'specify': 0.24; 'define': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'parameters.': 0.31; 'johnson': 0.35; 'received:google.com': 0.35; 'false': 0.36; 'generic': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'term': 0.63; 'special': 0.74; 'huh?': 0.84; 'rick': 0.93; '2013': 0.98 |
| 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:to :content-type; bh=DIAx7s+G0SVIGkri6neRf6OdrjZ6v5o+z/LgXSlUGaI=; b=0ATsXJQ+VayyWkTcejWlZBSiXsLIX92t0hXHkosgTuh+KQ5523ztTXW74JX+8sEAYu V5FQwfbXKLsmkBnC/dJ+5NL3kUwX2tHhpA1k8kkUkuohA1spTdBlXqr7TIoyjIFc6HJy hTxXzMrKj9RNaLaROHx0oR+x9euv4rcaZ+FB3O4Z4shOeJaIgQln8XDxgL6ZCMJ56Dss En8ldI44P9HtJfljm9BIH7uyYfCa9O6QqlBNqJVvItdU8L5x8t160z2CNvm2BCz6MUoy Q/1Qwl53d1bmyv5Pz47AiOgZ9baaLgcfbBaZWXH35A2gMOdJH9apcGj+9W24z7HBiOsv XK2Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.202.197 with SMTP id ff5mr8460272vcb.3.1371954390163; Sat, 22 Jun 2013 19:26:30 -0700 (PDT) |
| In-Reply-To | <d4074823-c8cb-436e-a73c-9c7aa5e53d51@googlegroups.com> |
| References | <CAJ=2b07ETuSuo2+3Xu6vMOJA+q1JwUFTezO3LaYLG8wXd+FLBQ@mail.gmail.com> <51C4D2FF.8000709@digipen.edu> <mailman.3692.1371908252.3114.python-list@python.org> <51870913-c348-4807-bc25-aa7c8fbf0001@googlegroups.com> <mailman.3712.1371943267.3114.python-list@python.org> <d4074823-c8cb-436e-a73c-9c7aa5e53d51@googlegroups.com> |
| Date | Sun, 23 Jun 2013 12:26:30 +1000 |
| Subject | Re: n00b question on spacing |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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.3720.1371954399.3114.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1371954399 news.xs4all.nl 15889 [2001:888:2000:d::a6]:48313 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:48965 |
Show key headers only | View raw
On Sun, Jun 23, 2013 at 10:48 AM, Rick Johnson
<rantingrickjohnson@gmail.com> wrote:
> On Saturday, June 22, 2013 6:12:50 PM UTC-5, Chris Angelico wrote:
>> As a general rule, I don't like separating format strings and their
>> arguments.
>
> Huh? Format strings don't take arguments because Python's built-in string type is not callable.
>
> py> callable("")
> False
>
> "Format string" is just a generic term we apply to normal string literals that include special markers (called "placeholders") that define the final location and specify the specifics of an Object(s) translation into string type.
And parameterized SQL queries don't take parameters either, for the
same reason. They're extra parameters given to the call that uses it.
So? The format string still takes parameters.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 14:36 +0100
Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 08:24 -0700
Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 16:40 +0100
Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 08:55 -0700
Re: n00b question on spacing Joshua Landau <joshua.landau.ws@gmail.com> - 2013-06-22 17:11 +0100
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 09:12 +1000
Re: n00b question on spacing Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 17:48 -0700
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 12:26 +1000
Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 19:28 -0400
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 09:37 +1000
Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 19:56 -0400
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 10:27 +1000
Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 20:46 -0400
Re: n00b question on spacing MRAB <python@mrabarnett.plus.com> - 2013-06-23 02:20 +0100
Re: n00b question on spacing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-23 02:58 +0000
Re: n00b question on spacing Roy Smith <roy@panix.com> - 2013-06-22 23:12 -0400
Re: n00b question on spacing Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-23 03:22 +0000
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 13:36 +1000
Re: n00b question on spacing Roy Smith <roy@panix.com> - 2013-06-23 09:43 -0400
Re: n00b question on spacing Chris Angelico <rosuav@gmail.com> - 2013-06-23 14:09 +1000
Re: n00b question on spacing Dave Angel <davea@davea.name> - 2013-06-22 21:35 -0400
Re: n00b question on spacing Terry Reedy <tjreedy@udel.edu> - 2013-06-23 11:40 -0400
csiph-web