Hello, Its probably a priority of avalauation in the chain of operators ans
association of themselves. I'm not sure. Philippe.
De : "BlindAnagram"
A : python-list@python.org
Envoyé: dimanche 6 Novembre 2022 00:57
Objet : Re: comprehension parsing
On 05/11/2022 22:11, MRAB w
On 05/11/2022 22:11, MRAB wrote:
On 2022-11-05 18:52, cactus wrote:
On Saturday, 5 November 2022 at 16:06:52 UTC, cactus wrote:
I should have quoted the full comprehensions:
all((srt(m, n) in c_np) == (srt(a, b) in c_ap) for (m, a), (n, b)
in combinations(na8, 2))
all( srt(m, n) in c_np
On 2022-11-05 18:52, cactus wrote:
On Saturday, 5 November 2022 at 16:06:52 UTC, cactus wrote:
I should have quoted the full comprehensions:
all((srt(m, n) in c_np) == (srt(a, b) in c_ap) for (m, a), (n, b) in
combinations(na8, 2))
all( srt(m, n) in c_np == srt(a, b) in c_ap) for (m, a
On Saturday, 5 November 2022 at 16:06:52 UTC, cactus wrote:
I should have quoted the full comprehensions:
all((srt(m, n) in c_np) == (srt(a, b) in c_ap) for (m, a), (n, b) in
combinations(na8, 2))
all( srt(m, n) in c_np == srt(a, b) in c_ap) for (m, a), (n, b) in
combinations(na8, 2))
--
The two comprehensions:
all((srt(n, m) in c_np) == (srt(a, b) in c_ap) for (m, b) in na)
all( srt(n, m) in c_np == srt(a, b) in c_ap for (m, b) in na)
parse differently but I am unclear what the second one produces since I thought
it would be the same as the first.
Any ideas how the second