🧩 Leveraging Typing.Protocol: Faster Error Detection And Beyond Inheritance (pybit.es)
A good article about the typing.Protocol mechanism introduced in 3.8, which can elegantly replace the use of ABC-type classes (and the inheritance that goes with it) to enforce/validate interfaces at write time (via your IDE’s static type checker, for example).

πŸ›‘οΈ Python Software Foundation News: White House recommends use of memory-safe languages like Python (pyfound.blogspot.com)
A short post from the Python Software Foundation (PSF) that relays an official statement from the White House recommending the use of “memory-safe” languages like Python (or Rust). The post also reminds us that although more and more Python extensions are being written (or converted) in Rust, there is still much work to be done to secure the ecosystem.

πŸ“‘ A Retrospective on Requests (blog.ian.stapletoncordas.co)
One of the three maintainers of the very popular package Requests (one of the most downloaded on PyPI) explains in detail why it is very difficult today to evolve the project, concluding that to him the project seems dead…ouch. It is a project that, while it has had a complicated history, is supported by the PSF, so let’s see how things evolve.

πŸ“° The most important Python news in 2023 (python.tips)
An excellent resource for recapping Python news from 2023 organized by topics. Noteworthy topics include Large Language Models and Insights in Software Engineering Practices, which I don’t cover much here but may interest you.

🏷️ What’s In A Name? (thepythoncodingstack.com)
An educational article to understand what lies behind the “names” given to Python objects and the pitfalls you inevitably encounter at some point when manipulating these objects by their name(s).

πŸ“Š How fast can we process a CSV file (datapythonista.me)
Here is an article that details different methods for effectively processing a CSV file (somewhat similar to last month’s article on an Excel file). It is written by a “core developer” of pandas who knows his subject very well and does not stop at pandas but considers many other solutions.

πŸŽ₯ Why You Should Use Pydantic in 2024 | Tutorial (youtube.com)
A well-made and educational video by our dear Arjan about Pydantic, the library that could accompany all your projects requiring input data validation.

πŸ§ͺ Use weird tests to capture tacit knowledge (jmduke.com)
A short but pretty clever article that recommends using tests to capture development processes usually found in developer documentation (which is often not read) or in scripts (which can be complicated to write).

✨ Every dunder method in Python (pythonmorsels.com)
An article that exhaustively lists all the “magic” functions or attributes in Python, also known as “double underscore” or “dunder” methods; if you want to add a classic operation to your Toto class, for example, find and implement the “dunder” method that fits!

πŸ•ΈοΈ Designing a Pure Python Web Framework (reflex.dev)
To conclude, here is an article presenting the architecture of a new framework for building web applications in pure Python (think of Plotly Dash, Streamlit, Panel, etc.). Being very familiar with Dash, I find the principles discussed quite interesting; let’s see how the project develops.