PythonHub
2.4K subscribers
2.35K photos
49.1K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
BeeWare – write Python, run as native everywhere

https://beeware.org/
TIL: typing.Protocol Across Python Versions

How to seamlessly support typing.Protocol on Python versions older and newer than 3.8. At the same time.

https://hynek.me/til/typing-protocol/
GPT in PyTorch

In this video, we are going to implement the GPT2 model from scratch. We are only going to focus on the inference and not on the training logic. We will cover concepts like self attention, decoder blocks and generating new tokens.

https://www.youtube.com/watch?v=d7IRM40VMYM
Show HN: Koda, a Typesafe Functional Toolkit for Python

https://pypi.org/project/koda/
A Comprehensive Guide to Slicing in Python

Python Slicing is a powerful tool to access sequences. To learn more about the inner mechanics of slices, read this post.

https://bas.codes/posts/python-slicing