PythonHub
2.44K subscribers
2.35K photos
49.4K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Detecting object wrappers

The wrapt library's version 2.0.0 changed its object proxy class hierarchy, breaking checks that detect if an object is already wrapped, causing repeated wrapping and performance issues. The best practice is to use custom wrapper types and traverse wrapper chains via the wrappedattribute to reliably detect wrapping, emphasizing careful version pinning and cautious monkey patching in ...

https://grahamdumpleton.me/posts/2025/10/detecting-object-wrappers/
pip 25.3

The pip 25.3 release is the final major pip update of 2025, featuring the removal of non-PEP 517 package build support and non-PEP 660 editable installs, meaning pip no longer calls legacy setup.py commands. It adds the new --build-constraint option for specifying build-time constraints separately, improves caching and metadata handling, supports editable requirements as Direct URLs, and...

https://discuss.python.org/t/announcement-pip-25-3-release/104550
Wheels for free-threaded Python now available for psutil

https://gmpy.dev/blog/2025/wheels-for-free-threaded-python-now-available-in-psutil
Helion: A High-Level DSL for Performant and Portable ML Kernels

Helion is a Python-embedded high-level DSL that compiles to optimized Triton kernels, blending the simplicity of PyTorch syntax with powerful autotuning to deliver high-performance, portable machine learning kernels across hardware architectures. It automates complex tasks like tensor indexing, memory management, and hardware-specific tuning, enabling developers to write efficient kernel...

https://pytorch.org/blog/helion/
The Best Way to Share Code Between Python Apps

The video explains how to use UV workspaces to manage multiple Python applications with shared code and dependencies in a single repository. It demonstrates structuring a project with CLI and FastAPI apps, extracting shared logic into internal packages, and managing dependencies efficiently to avoid duplication and conflicting environments. The approach simplifies development and scaling...

https://www.youtube.com/watch?v=N_ypJwV8Q8I