atlas news
    
Mathspp
07  novembre     22h55
Module compression overview
   A high-level overview of how to use the module compression, new in Python 3.14. This article will teach you how to use the package compression, new in Python 3.14. You will learn how to compress and decompress data directly; write and read from compressed files; compress and decompress data...
04  novembre     20h26
A generator, duck typing, and a branchless conditional walk into a bar
   A generator, duck typing, and a branchless conditional walk into a bar. What’s your favourite line of Python code? My friend Aaron is quite a character. One day, he was giving a talk and said that everyone must have their favourite line of code. And he was absolutely sure of what he was saying. His...
26  octobre     13h44
TIL 135 - Build the Python documentation
   Today I learned how to build the Python documentation to preview changes I wanted to make. If you’re not on Windows, all it takes is to run make -C Doc venv htmllive to build the Python documentation locally and to preview it. This command will build the documentation, start a local server to...
06  octobre     07h00
Functions: a complete reference Pydon’t
   This article serves as a complete reference for all the non-trivial things you should know about Python functions. Functions are the basic building block of any Python program you write, and yet, many developers don’t leverage their full potential. You will fix that by reading this article. Knowing...
04  octobre     14h01
TIL 134 - alignment in string formatting
   Today I learned how to use the equals sign to align numbers when doing string formatting in Python. There are three main alignment options in Python’s string formatting: Character Meaning align right centre However, numbers have a fourth option . On the surface, it looks like it doesn’t do...
25  septembre     10h16
TIL 133 - Shoelace formula
   Today I learned about the shoelace formula to compute the area of arbitrary simple polygons. If you have a polygon with no holes and that doesn’t intersect itself you can use the shoelace formula to compute its area. If (P i (x i, y i), i 1, cdots, n ) are the vertices of the polygon, then the area...
    09h47
TIL 132 - Double factorial
   Today I learned about the double factorial. The double factorial, (n ), is defined as the product of all positive integers less than or equal to (n ) that have the same parity as (n ). Some examples: (5 5 times 3 times 1 ) (8 8 times 6 times 4 times 2 ) When reading about it in a book authored by a...
06  septembre     17h36
uv cheatsheet
   Cheatsheet with the most common and useful uv commands to manage projects and dependencies, publish projects, manage tools, and more. This cheatsheet lists the most commonly used commands and should be more than enough for you to get started using uv. For more advanced use cases, check the uv docs...
02  septembre     22h51
TIL 131 - Change casing in search replace
   Today I learned you can change the casing of matched groups when doing a search & replace in VS Code with regex. VS Code has a search & replace feature that lets you use regex to look for patterns and then reference groups in the replacement... But it lets you do something else that’s really cool....
30  août     12h54
Accepting the PSF Community Service Award
   I am truly honoured to have been awarded a PSF Community Service Award in Q2 of 2025. What’s the PSF Community Service Award? According to the PSF website, The PSF Community Service Awards are a formal way for the PSF Board of Directors to offer recognition of work which, in its opinion,...