[Python-ideas] Re: Ampersand operator for strings

2023-03-07 Thread Rob Cliffe via Python-ideas
You make a very powerful point, Bruce.  Much more so IMO than anyone else has so far. Unless anyone else can find a convincing rebuttal, I withdraw my proposal. Best wishes Rob Cliffe On 07/03/2023 21:49, Bruce Leban wrote: On Sun, Mar 5, 2023 at 7:39 PM Rob Cliffe via Python-ideas wrote:

[Python-ideas] Re: Ampersand operator for strings

2023-03-07 Thread Bruce Leban
On Sun, Mar 5, 2023 at 7:39 PM Rob Cliffe via Python-ideas < python-ideas@python.org> wrote: > Tl;dr: Join strings together with exactly one space between non-blank > This idea is inappropriate for inclusion in the language. There are too many subtle details in how this should work as noted by

[Python-ideas] Re: Ampersand operator for strings

2023-03-07 Thread Jeremiah Paige
I agree. This behavior is too specialized to be implemented as an operator. + is IME so infrequently used on python strings that we should take caution when proposing new binary string operators. Two strings to concat, maybe; three, possibly; four or more, and I reach for join() or f-strings or

[Python-ideas] Re: Ampersand operator for strings

2023-03-07 Thread Rob Cliffe via Python-ideas
On 07/03/2023 07:26, Stephen J. Turnbull wrote: Rob Cliffe writes: > Perhaps where you're not laying out a table, I'm an economist Oh goody!  *Please* tell me what our Government needs to do to grow the UK economy and curb inflation.  I'll inform my MP immediately.  Seriously though ...

[Python-ideas] Re: Ampersand operator for strings

2023-03-07 Thread Valentin Berlier
I'm -1 on this. You can easily make a helper that achieves the desired syntax. Presenting "human readable data" isn't just about collapsing spaces, and having your own helper means that you can adjust the formatting to your specific use case if needed (for example with a different separator).