Post #2553283
2026-04-20 12:02 UTC
@ewjoachim@piaille.fr ok i looked up PEP 636
> Matching against constants […] will work with any dotted name (like `math.pi`). However an unqualified name (i.e. a bare name with no dots) will be always interpreted as a capture pattern, so avoid that ambiguity by always using qualified constants in patterns
that’s an unfortunate design choice
Replies (0)
No replies.