Context Managers and the “with” Statement in Python

The “with” statement in Python is regarded as an obscure feature by some. But when you peek behind the scenes of the underlying Context Manager protocol you’ll see there’s little “magic” involved.
Read more

Similar

Making Python faster

Subscriptions are the lifeblood of LWN.net. If you appreciate this content and would like to see more of it, your subscription will help to ensure that LWN continues to thrive. Please visit this page to join up and keep LWN on ... (more…)

Read more »

Exploratory Data Analysis in Python

In this notebook I'm going to share with you some of my techniques and thought processes for exploratory data analysis. I'll demonstrate everything with analysis of a real data set. It is important to emphasize that there isn't a single right way to do ... (more…)

Read more »

Introduction to web scraping with Python

Data is the core of predictive modeling, visualization, and analytics. Unfortunately, the needed data is not always readily available to the user, it is most often unstructured. The biggest source of data is the Internet, and with programming, we can extr... (more…)

Read more »