PythonHub
2.47K subscribers
2.35K photos
49.6K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Unit testing your code’s performance, part 1: Big-O scaling

Your software’s speed needs some form of testing; big-O scaling is a good starting point.

https://pythonspeed.com/articles/big-o-tests/
Recent optimizations in Python's Reference Counting

CPython 3.14+ introduced LOADFASTBORROW, a bytecode optimization that skips reference count increments when loading local variables in hot loops, using static lifetime analysis to ensure safety. This reduces memory management overhead in performance-critical code like tight loops, mimicking Rust-style borrowing while preserving Python's reference counting model, with further JIT optimi...

https://rushter.com/blog/python-refcount/
WebAssembly as a Python Extension Platform

https://nullprogram.com/blog/2026/01/01/
I Made a Classic Refactoring Mistake

Arjan addresses mistakes in his prior video's refactoring of a messy order approval function, identifying three logic errors via failing tests. He discusses refactoring pitfalls like incomplete tests (86% coverage despite bugs), tricky and/or conditions, data structures, and the lack of a true "ground truth" in business logic.

https://www.youtube.com/watch?v=b6RnBKvQ40o
Moving Scratch generation to Python on browser

https://kushaldas.in/posts/introducing-ektupy.html
SnackBase – Open-source, GxP-compliant back end for Python teams

https://snackbase.dev
pyPFC: An open-source Python package for phase field crystal simulations

A Python framework for setting up, running and analyzing 3D Phase Field Crystal (PFC) simulations.

https://github.com/HHallb/pyPFC