PythonHub
2.31K subscribers
2.35K photos
48.9K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Python in LibreOffice (LibrePythonista Extension)

https://extensions.libreoffice.org/en/extensions/show/99231
Unravelling t-strings

PEP 750 introduced t-strings for Python 3.14. In fact, they are so new that as of Python 3.14.0b1 there still isn't any documentation yet for t-strings. As such, this blog post will hopefully help explain what exactly t-strings are and what you might use them for by unravelling the syntax and briefly talking about potential uses for t-strings.

https://snarky.ca/unravelling-t-strings/
Ruff - A Fast Linter & Formatter to Replace Multiple Tools and Improve Code Quality

This video is a hands-on tutorial showing how to use Ruff, a super-fast Python linter and formatter written in Rust that consolidates tools like Flake8, Black, and isort into a single, efficient solution. The guide covers installing Ruff, running it from the command line, configuring it for projects, and integrating it with VS Code to improve code quality and developer workflow.

https://www.youtube.com/watch?v=828S-DMQog8
Beyond Query Optimization

Lyft engineers detail how they improved the scalability and reliability of their Aurora Postgres databases by implementing connection pooling with SQLAlchemy and Amazon RDS Proxy. The article explains the challenges of managing database connections in high-traffic environments and describes how these solutions reduced connection limits, improved application stability, and optimized resou...

https://eng.lyft.com/beyond-query-optimization-aurora-postgres-connection-pooling-with-sqlalchemy-rdsproxy-200db7f562d7
A leap year check in three instructions

The article explores how to check if a year is a leap year using just three CPU instructions, leveraging clever bit manipulation and "magic numbers" to optimize the standard algorithm. By reverse-engineering and brute-forcing constants, the author demonstrates a branchless, highly efficient leap year check for years up to 102,499, illustrating both the mathematical tricks and practical l...

https://hueffner.de/falk/blog/a-leap-year-check-in-three-instructions.html
AlphaEvolve: A coding agent for scientific and algorithmic discovery

AlphaEvolve is an autonomous coding agent that uses evolutionary strategies to improve algorithms by iteratively modifying code and learning from evaluator feedback. It has achieved breakthroughs in data center scheduling, hardware design, and mathematical discovery—including surpassing Strassen’s 4×4 matrix multiplication algorithm for the first time in 56 years.

https://storage.googleapis.com/deepmind-media/DeepMind.com/Blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/AlphaEvolve.pdf
A Python frozenset interpretation of Dependent Type Theory

The post explores modeling dependent type theory (DTT) concepts using Python’s frozenset data structure, treating types as finite sets to clarify complex type-theoretic ideas. By implementing type constructors like dependent sums (Σ), dependent products (Π), and identity types in Python, the author demonstrates how key DTT judgments and structures can be represented and reasoned about in...

https://www.philipzucker.com/frozenset_dtt/
Flask Wiki

A community-driven wiki for learning Flask.

https://flaskwiki.wiki/