PythonHub
2.33K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Python and SysV shared memory

The article explains how to use Python's ctypes to wrap SystemV shared memory functions (like shmat, shmget) for interprocess communication on systems restricted to Python 3.7. The author demonstrates creating, reading, writing, and destroying shared memory segments through Python, noting that while this approach isn't needed in Python 3.8+ due to built-in abstractions, it's useful in re...

https://euroquis.nl/blabla/2024/10/08/shm.html
Python client for the $20 Colmi R02 smart ring

https://tahnok.github.io/colmi_r02_client/colmi_r02_client.html
TypedDicts are better than you think

This post explains how Python’s TypedDict can enhance code clarity and maintainability by enabling more precise type annotations in dictionaries. It discusses how TypedDict ensures type safety and helps with early error detection in dynamic programming environments.

https://blog.changs.co.uk/typeddicts-are-better-than-you-think.html
Python 3.13.0

The newest major release of Python introduces several new features including an improved interactive interpreter, an experimental free-threaded build mode, and a preliminary JIT, along with various optimizations and changes to the standard library.

https://www.python.org/downloads/release/python-3130/
The New Python 3.13 Is FINALLY Here!

Python 3.13 is here with exciting updates! Dive into the key new features, including the game-changing option to disable the Global Interpreter Lock (GIL).

https://www.youtube.com/watch?v=eUDGlxu_-ic
Pyloid

Pyloid is the Python backend version of Electron and Tauri, providing an open-source project that allows you to easily utilize various Python integration features. With Pyloid, developing desktop applications becomes simple, enabling you to effortlessly build apps by integrating Python's powerful capabilities.

https://github.com/pyloid/pyloid
The Uncertain Art of Accelerating ML Models

This podcast episode features Sylvain Gugger, a machine learning engineer at Jane Street, discussing techniques for accelerating ML models. The conversation covers topics like learning rate schedules, performance optimization in PyTorch, GPU utilization, and the unique challenges of applying ML in trading environments.

https://signalsandthreads.com/the-uncertain-art-of-accelerating-ml-models/