Logging in Python Like a Pro

I’ll show you what good logging is with real-life examples. Most people don’t know what to log, so they end up creating just noise…. Read more

Similar

Functions in Python

A function is a block of code that performs an operation usually a specific task. Functions help break our program into smaller and modular chunks, making them resusable and redable. They prevent repetition of code. You can pass data known as parameters... (more…)

Read more »

On the Beauty of Python’s ExitStack

I believe Python's ExitStack feature does not get the recognition it deserves. I think part of the reason for this is that its documentation is somewhere deep down in the (already obscure) contextlib module because formally ExitStack is just one of many a... (more…)

Read more »