Performance Profiling in Python

Ever been in the position of needing to troubleshoot poorly performing Python code, or out of curiosity wanted to see what is taking the longest to execute? This is where you would want to go down the path of profiling your Python code, there are several tools available to do…

Python Lambda Functions - What The?

Like many a new, or seasoned Python developer I often find myself scratching my head at lambda functions whenever I encounter one, simply because of never taking the short amount of time to understand them. After finally getting fed up with them being nothing more than a source of confusion…

Type Hints in Python - Why Bother?

For very short, or one-off scripts to do some task then it is likely not worth the added effort involved with adding type hints. For anything else beyond a trivial script, it is more than worth the effort.…

Intro to the Python Walrus Operator

The release of Python 3.8 brings with it a new language feature called Assignment Expressions. This new feature exposes the functionality to assign a variable within a Python expression, evaluate the result, then re-use the variable within it’s scope.…