📡 Python radar - February/March 2025
A personal selection of Python-related news and projects that caught my attention this month (note: leading emojis are mine).
🐍 The Mutable Trap: Avoiding Unintended Side Effects In Python (pybit.es)
A good reminder on why mutable default parameters in function should be avoided/ In summary, don't do this: f(args=[])
⚙️ Using uv to build and install Python CLI apps (mathspp.com)
A nice and quick workflow to setup and install your own CLI app using uv
🧠 The surprising way to save memory with BytesIO (pythonspeed.com)
TL;DR BytesIO getvalue() method does not copy the content as long as you just read from it, that's it !
🤖 kdunee/intentguard: A Python library for verifying code properties using natural language assertions (github.com)
What's interesting with this project is that it embeds a small local LLM "fine-tuned from Llama-3.2-1B-Instruct" which runs locally using llamafile, just "pip-install-it". Disclaimer: I haven't tested it so I don't how good it is, but I like the idea.