Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Eric Smith
I'm against syntax for this, for all the reasons stated by others. Jerry Chen wrote: Just one last note: I think my end goal here was to preserve the visual clarity and separation between format string and format parameters, as I much prefer: "%s %s %s" % (1, 2, 3) over "{0} {1} {2}".format(1

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Martin v. Löwis
> For better or for worse, I have created a patch against the py3k trunk > which introduces a binary operator '@' as an alternative syntax for > the new string formatting system introduced by PEP 3101 ("Advanced > String Formatting"). [1] I'd like to join everybody else who said that this would be

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Jerry Chen
Ah, the people have spoken! On Sun, Jun 21, 2009 at 2:12 PM, Terry Reedy wrote: > The place to float trial balloons is the python-ideas list. I'll put this one to rest, and as mentioned, will direct any future suggestions to python-ideas instead of here. Most of the arguments against my proposal

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Terry Reedy
Jerry Chen wrote: Hello all, For better or for worse, I have created a patch against the py3k trunk which introduces a binary operator '@' as an alternative syntax for the new string formatting system introduced by PEP 3101 ("Advanced String Formatting"). [1] For common cases, this syntax shoul

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread R. David Murray
On Sun, 21 Jun 2009 at 12:36, Jerry Chen wrote: For better or for worse, I have created a patch against the py3k trunk which introduces a binary operator '@' as an alternative syntax for the new string formatting system introduced by PEP 3101 ("Advanced String Formatting"). [1] It seems to me t

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Antoine Pitrou
Hello, > For better or for worse, I have created a patch against the py3k trunk > which introduces a binary operator '@' as an alternative syntax for > the new string formatting system introduced by PEP 3101 ("Advanced > String Formatting"). [1] While many people find the new format() tedious to

Re: [Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Steven Bethard
On Sun, Jun 21, 2009 at 1:36 PM, Jerry Chen wrote: > QUICK EXAMPLES > >    >>> "{} {} {}" @ (1, 2, 3) >    '1 2 3' > >    >>> "foo {qux} baz" @ {"qux": "bar"} >    'foo bar baz' > > One of the main complaints of a binary operator in PEP 3101 was the > inability to mix named and unnamed arguments: >

[Python-Dev] Binary Operator for New-Style String Formatting

2009-06-21 Thread Jerry Chen
Hello all, For better or for worse, I have created a patch against the py3k trunk which introduces a binary operator '@' as an alternative syntax for the new string formatting system introduced by PEP 3101 ("Advanced String Formatting"). [1] For common cases, this syntax should be as simple and a