python / psf-infra-meta

Meta-repository for PSF backed or managed systems. Created mainly for the issue tracker :)
11 stars 7 forks source link

use multiple "in" in one expression? #128

Closed weditor closed 3 years ago

weditor commented 3 years ago

I find it's a valid expression: 1 in [1, 2, 3] in [4, 5, 6]

a in b in c seems to be equivalent to a in b and b in c

it seems useless, and easy to confused with (a in b) in c . in this program, what I originally want is if a in b and a in c , But it was mistakenly written as a in b in c

This is too weird , is this a bug ?

weditor commented 3 years ago

This expression is similar to a<b<c 。 But this seems very unreasonable 。

weditor commented 3 years ago

sorry, The issue is in the wrong place