How to make the match statement work?

@tjol maybe, see below
@steven.daprano Are you saying that when I write:

>>> match int(1):
...  case str:
...   print(1)
...
1
>>>

“case str” matches everything and assigns it to the name “str”? That would explain my what I’m seeing and also explain my top post, since I had earlier, incorrectly written “case int” which effectively shadowed the int builtin function as @tjol asked

And this would indeed be a big “gotcha!”

It would be nice to see simple type matching covered in the tutorial. Annd, the doc page I linked talks about type matching but doesn’t have simple, complete examples which makes it harder for me to figure out what I can and cannot do.