[Python-ideas] format specifier for "not bytes"
Daniel Holth
dholth at gmail.com
Fri Aug 24 21:21:15 CEST 2012
On Fri, Aug 24, 2012 at 3:07 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> On 25/08/12 04:57, Daniel Holth wrote:
>>
>> Yes, if I wanted to pretend I was using JavaScript.
>
>
> I'm not entirely sure what you are responding to here -- the context is
> lost when you top post like that. I'm *guessing* that you are responding
> to Antoine's advice to use concatenation.
I am only trying to say that I like using the string formatting
operations and I think I am justified in using them instead of
concatenation. I was merely surprised by the implicit bytes to
"b'string'" conversion, and would like to be able to turn it off.
I do rather enjoy programming in JavaScript, even though its strings
do not have a .format() method.
> If so, why do you think that concatenation is "pretending" to be using
> Javascript? It is a perfectly valid operation in Python, and many languages
> which predate Javascript include concatenation.
More information about the Python-ideas
mailing list