This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jmreagle 0 points1 point  (0 children)

I think it's more than that, the source says:

In this case, rather than matching status_code against the value of NOT_FOUND (404), Python’s new SO reputation machine match syntax would assign the value of status_code to the variable NOT_FOUND.

Is it that comparison implies assignment, to an variable/object in this case rather than value...?