mathspp blog

410 446,604 37,204
articles words lines of code

This article shows how I have used regex in real life for all sorts of tasks.

In this article I share my personal highlights of PyCon Italy 2025, including stories and anecdotes.

Answer this quiz to test your knowledge about the Python language, community, andd the 2025 edition of PyCon Italy!

Dip your toes in metaprogramming and learn about __init__'s big brother, the dunder method __new__.

Play this short Python quiz to test your Python knowledge!

Today I learned how to set different thousands separators using string formatting.

In this article I share my personal highlights of the 2025 edition of the PyCon US conference,.

This article shows the small script I use to automatically push code changes while live coding in talks or classes, improved with uv.

Today I learned that the module builtins grows dynamically in the REPL.

Today I learned you can use uv to install CLI tools with extra dependencies.

This article gives an overview of the tools available in the module enum and how to use them.

Today I learned how to use uv to escape uv and go back to using venv and pip for a given project.

This article proposes an implementation of an ergonomic binary search algorithm implemented as a bidirectional generator.

Today I learned how to publish a Python package to PyPI with uv.

This is a short account of how I wrote a program that solves all LQueens puzzles from LinkedIn automatically with Python.

The 10th article of this series adds support for elif and else statements.

This practical tutorial shows how to use uv to build and install custom Python CLI applications globally on your system.

You can ignore exceptions with contextlib.suppress and in this article I show why this is preferred over try: ... except: pass.

Today I learned that Python has nested Easter eggs in the standard library.

Today I learned that Polars allows non-strict vertical concatenation of dataframes with the parameter how="vertical".