Post #2553282
2026-04-20 11:04 UTC
@ewjoachim@piaille.fr it's been a long time since i've done much python but that output looks unexpected. can you say more about what's going on?
Replies (1)
-
@simon@tutut.delire.party 2026-04-20 12:02
@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