News for hackers. Stuff that matters.
Re:Show HN: Switch-Case Construct in 3 Lines of Python by ssanderson11235 on Wednesday August 19, 2015 @07:06PM (#10089140)
Heh, thanks. It's amazing how well-suited Python's for-loop is for emulating this behavior: `break` just does exactly what you want, and you can throw in an else-block where you'd use a default in another language.

There are no comments on this comment yet.