Python Tricks #2: Emulating Switch/Case in Python

► Write Clean & Beautiful Python: https://dbader.org/pytricks-book Python doesn’t have switch/case statements so it’s often necessary to write long if/elif/e…

Similar

Python Pickle’s Nine Flaws

Python’s pickle module is a very convenient way to serialize and de-serialize objects. It needs no schema, and can handle arbitrary Python objects. But it has problems. This post briefly explains the problems. (more…)

Read more »