PythonHub
2.42K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Ask HN: How is Python's OOP is superior vs. Lisp CLOS?

https://news.ycombinator.com/item?id=31808632
Shapash – Python library to make machine learning interpretable

https://maif.github.io/shapash/
Show HN: Meadowrun automates the tedious details of running Python on AWS/Azure

https://meadowrun.io
The Annotated Transformer

The Transformer has been on a lot of people’s minds over the last five years. This post presents an annotated version of the paper in the form of a line-by-line implementation.

http://nlp.seas.harvard.edu/annotated-transformer/
Design Patterns in Machine Learning Code and Systems

Design patterns are not just a way to structure code. They also communicate the problem addressed and how the code or component is intended to be used. Here are some patterns I’ve observed in machine learning code and systems.

https://eugeneyan.com/writing/design-patterns/
Cython for absolute beginners: 30x faster code in two simple steps

Easy Python code compilation for blazingly fast applicationsContinue reading on Towards Data ...

https://towardsdatascience.com/cython-for-absolute-beginners-30x-faster-code-in-two-simple-steps-bbb6c10d06ad
Parallelization with MultiProcessing in Python

Run your data science tasks in parallel to speed up computation timeContinue reading on Towards ...

https://towardsdatascience.com/parallelization-w-multiprocessing-in-python-bd2fc234f516
Appreciating Python's match-case by parsing Python code

Python's match-case blocks are complex structural pattern matching tools that are often more hassle than they're worth. But they're great for parsing abstract syntax trees.

https://www.pythonmorsels.com/match-case-parsing-python/
How to optimize PostgreSQL queries from Django using pgMustard

Slow queries happen, and when they do, it can be tough to dissect why they’re slow. This difficulty is compounded by using Django’s ORM, since it generates the SQL for you, so you may have little idea of the actual queries “under the hood”. In this post we’ll look at what pgMustard does and how to use it with the Django ORM.

https://adamj.eu/tech/2022/06/21/optimize-postgresql-queries-from-django-using-pgmustard/