n00b question on spacing
Chris Angelico
rosuav at gmail.com
Sat Jun 22 22:26:30 EDT 2013
On Sun, Jun 23, 2013 at 10:48 AM, Rick Johnson
<rantingrickjohnson at 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
More information about the Python-list
mailing list