mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
21 lines
334 B
Python
21 lines
334 B
Python
match[1]
|
|
match[2] = 3
|
|
|
|
match.foo = 4
|
|
|
|
match()
|
|
|
|
match[5] : case
|
|
|
|
|
|
# match used "properly"
|
|
match [6]:
|
|
case 7:
|
|
pass
|
|
|
|
|
|
print >> 8, "hello" # Python 2-style print
|
|
pront >> 9, "world" # How this would be interpreted in Python 3
|
|
|
|
await [10] # In Python 2 this would be an indexing operation, but it's more likely to be an await.
|