Do Not Use “+” to Join Strings in Python

A comparison of the approaches for joining strings in Python, using “+” and join() method. Read more

Similar

Exceptions in Python

Python uses special objects called exceptions to manage errors that arise during a program’s runtime. Whenever an error occurs that makes Python unsure what to do next, it creates an exception object. If you write... (more…)

Read more »

Better Python Object Serialization

The Python standard library is full of underappreciated gems. One of them allows for simple and elegant function dispatching based on argument types. This makes it perfect for serialization of arbitrary objects – for example to JSON in web APIs and stru... (more…)

Read more »