mathspp blog

422 452,930 37,777
articles words lines of code

I am truly honoured to have been awarded a PSF Community Service Award in Q2 of 2025.

Learn how to use functools.Placeholder, new in Python 3.14, with real-life examples.

Today I learned you can format your Python code directly with uv.

Today I learned you can specify a custom value when using the class method dict.fromkeys.

In this article I share my personal highlights of the 2025 edition of the EuroPython conference in Prague, Czech Republic.

The PyCon Portugal 2025 programme appears to be dominated by a mafia of a few speakers... Let me explain!

Today I learned how to use \b and \B to match prefixes and suffixes with regex.

Today I learned that you can dynamically change the type of an object in Python.

Today I learned about a Python Easter Egg hidden in the hash of two special float values.

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

Today I learned you can embed images in your module docstrings and they'll be rendered in the tooltips inside your IDE.

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.