PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Avoid These 7 Common OOP Mistakes in Python

The video discusses common bad practices in Python object-oriented programming and how to avoid them. It covers issues like using classes unnecessarily instead of functions, overusing mixins, and excessive encapsulation, while providing practical examples and alternatives to improve code structure and readability.

https://www.youtube.com/watch?v=yFLY0SVutgM
Deep learning compilers and how the sausage is made

A series of discussions focused on deep learning compilers and machine learning. It covers how deep learning models are optimized and deployed for practical use cases. The content dives into topics relevant for developers and engineers working with AI frameworks and model performance optimization.

https://www.youtube.com/playlist?list=PLaMu-SDt_RB7ImARcTT_Wjypwx2vBIBen
Some tricks with UV

UV can be seen as an alternative to pip, but that might be a limiting way to think about the tool. Instead of looking at faster builds, which are still super nice, it might also make sense to rethink the stuff that we might be able to do from Python going forward.

https://www.youtube.com/watch?v=jXWIxk2brfk
What's in an e-graph?

The article explains e-graphs by incrementally building from union-find to a full e-graph implementation, highlighting key features like equivalence class discovery, pattern matching, and extraction. It demonstrates how e-graphs can be used in compilers for optimizations, offering a more flexible alternative to traditional find-and-replace methods while discussing trade-offs and variatio...

https://bernsteinbear.com/blog/whats-in-an-egraph/
Serializing package requirements in marimo notebooks

Marimo now allows notebooks to serialize their package requirements as top-level comments, enabling users to run notebooks in isolated virtual environments with a single command. This feature, powered by the uv package manager, enhances reproducibility and sharing of notebooks by eliminating the need for separate requirements files and preventing environment pollution.

https://marimo.io/blog/sandboxed-notebooks
Ask HN: Kotlin SpringBoot vs. Python Django for Min Viable Product

https://news.ycombinator.com/item?id=41584157