Improving performance in Python 2.7

Without subscribers, LWN would simply not exist. Please consider
signing up for a subscription and helping
to keep LWN publishing… Read more

Similar

The fastest way to flatten a list in Python

In my latest book, Fast Python, I bust a lot of speed myths in Python. Some of the most basic advice people give about optimizing Python code is wrong, likely because no one ever bothered to test it. In this book, I go back to the basics and verify (or bu... (more…)

Read more »

Polynomial Regression from Scratch in Python

Machine learning is one of the hottest topics in computer science today. And not without a reason: it has helped us do things that couldn’t be done before like image classification, image generation and natural language processing. But all of it boils dow... (more…)

Read more »