
this section, 3.1.2. Strings, contains the following phrase:
This only works with two literals though
perhaps it was meant to read
This only works with *true* literals though [bolded only for this email]
I noticed this in version 3.9.2.
...mark horowitz

Hi and thanks for reporting,
Le 6/2/21 à 7:58 PM, mark horowitz a écrit :
this section, 3.1.2. Strings, contains the following phrase:
This only works with two literals though
perhaps it was meant to read
This only works with *true* literals though [bolded only for this
email]
I think both are right:
- It only works when the "two operands" (to the "invisible operator") are literals. - It only works when they really are literals.
I still prefer the former, because there's no such thing as "false iterals".
Can we think of another unambiguous formulation?
Maybe "This only works with literals though"?
Bests, -- [Julien Palard](https://mdk.fr)

Ah, bonjour, Julien.
Perhaps one the following...
But this concatenation without an explicit operator works only if each operand is a literal.
Or
But this works only if each string is a literal, though, not a variable or expression.
...mark
On Fri, Jun 4, 2021, 5:14 AM Julien Palard julien@palard.fr wrote:
Hi and thanks for reporting,
Le 6/2/21 à 7:58 PM, mark horowitz a écrit :
this section, 3.1.2. Strings, contains the following phrase:
This only works with two literals though
perhaps it was meant to read
This only works with *true* literals though [bolded only for this
email]
I think both are right:
- It only works when the "two operands" (to the "invisible operator")
are literals.
- It only works when they really are literals.
I still prefer the former, because there's no such thing as "false iterals".
Can we think of another unambiguous formulation?
Maybe "This only works with literals though"?
Bests,
[Julien Palard](https://mdk.fr)

Bonjour,
Le 6/4/21 à 12:42 PM, mark horowitz a écrit :
Perhaps one the following...
But this concatenation without an explicit operator works only if each operand is a literal.
Or
But this works only if each string is a literal, though, not a variable or expression.
This would work for me, would you mind opening a pull request?
The sentence is in this file: https://github.com/python/cpython/blob/main/Doc/tutorial/introduction.rst
Bonne journée,
participants (3)
-
Julien Palard
-
Julien Palard
-
mark horowitz