[Python-ideas] Descouraging the implicit string concatenation

Terry Reedy tjreedy at udel.edu
Wed Mar 14 16:11:05 EDT 2018


On 3/14/2018 11:03 AM, Guido van Rossum wrote:
> I use the feature regularly for long error messages, and when combined 
> with .format() or % it's not so easy to replace it with a + (it would 
> require adding parentheses).

I like using f-strings for this now, and adding '+' stops compile-time 
concatenation across literal boundaries.  See my response to FB's 
original post.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list