News for hackers. Stuff that matters.
Re:What Is the Switch-Case Equivalent in Python? by bobbylarrybobby on Sunday April 04, 2021 @02:15PM (#26691612)
Don’t assignments already escape scope?

if True: x = 1 print(x)

Re:What Is the Switch-Case Equivalent in Python? by neolog on Sunday April 04, 2021 @02:34PM (#26691748)
`if` blocks don't make a scope. Comprehensions do.