Flow Control: match case: Revision history

From Master of Neuroscience Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 October 2025

15 October 2025

  • curprev 11:0211:02, 15 October 2025 Davrot talk contribs 9,341 bytes +9,341 Created page with " == The goal == There is a new flow control in town. A switch case replacement, called match case. Questions to [mailto:davrot@uni-bremen.de David Rotermund] == The [https://docs.python.org/3/reference/compound_stmts.html#the-match-statement match] statement == The match statement is used for pattern matching. Syntax:<syntaxhighlight lang="python">match_stmt ::= 'match' subject_expr ":" NEWLINE INDENT case_block+ DEDENT subject_expr ::= star_named_expression "," st..." Tag: Visual edit