PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Executing arbitrary Python code from a comment

The article explains how, in a CTF challenge, seemingly harmless Python code that only allows user input in a comment can actually be exploited for arbitrary code execution by constructing a valid ZIP file within the comment and leveraging Python's ability to run ZIP archives. By carefully crafting an ASCII-safe ZIP archive (with a main.py), even restrictive single-line comments can trig...

https://www.hacktron.ai/blog/posts/python-zip-confusion
Enterprise AI Tutorial – Embeddings, RAG, and Multimodal Agents Using Amazon Nova and Bedrock

Amazon Nova’s course teaches Embeddings, RAG, Multimodal Models, and Agents using tools like Bedrock, LangChain, and Titan Embeddings to build real-world AI applications. You’ll learn to automate workflows like insurance claims by integrating Bedrock Agents and Knowledge Bases for smarter, faster customer service.

https://www.youtube.com/watch?v=HaUe2AN210g
From Async/Await to Virtual Threads

Armin Ronacher revisits his earlier critique of async/await in Python, arguing for a simpler and more composable concurrency model built around structured, virtual threads that avoid colored functions and simplify cancellation and context passing. He proposes rethinking Python’s concurrency by embracing thread-first APIs with virtual thread groups, which can yield, cancel, and propagate ...

https://lucumr.pocoo.org/2025/7/26/virtual-threads/
PYX: The next step in Python packaging

https://astral.sh/blog/introducing-pyx
Synchrotron, a real-time DSP engine in pure Python

https://synchrotron.thatother.dev/