This PEP enables the use of non-attribute names as value patterns in match statements. This makes it possible to match local variables and global variables defined in the same module without having to use a guard clause.
0 comments
No comments yet.
Related stories
- Hacker News · 1 points · about 2 months ago
- Type Class Patterns and Anti-patternshackernoon.comLobsters · 5 points · over 9 years ago
- Lobsters · 6 points · about 9 years ago
- Show HN: Desbordante 2.5.0 Releasedgithub.comHacker News · 1 points · about 2 months ago
- Hacker News · 1 points · 2 months ago
- Hacker News · 1 points · 2 months ago