PythonHub
2.44K subscribers
2.35K photos
49.2K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Accelerate Python code 100x by import taichi as ti

There is no universal solution to all optimization problems. That's partially why Python is fascinating. You can always find/create an easy-to-use tool that can precisely solve your problem at hand. In terms of scientific computing, Taichi is an ideal option within Python that can help you achieve performance comparable to C/C++.

https://docs.taichi-lang.org/blog/accelerate-python-code-100x
Multiprocessing Pool in Python

This guide provides a detailed and comprehensive review of the multiprocessing.Pool in Python, including how it works, how to use it, common questions, and best practices.

https://superfastpython.com/multiprocessing-pool-python/
Someone’s Been Messing With My Subnormals!

After noticing an annoying warning, I went on an absurd yak shave, and discovered that because of a tiny handful of Python packages built with an appealing-sounding but dangerous compiler option, more than 2,500 Python packages—some with more than a million downloads per month—could end up causing any program that uses them to compute incorrect numerical results.

https://moyix.blogspot.com/2022/09/someones-been-messing-with-my-subnormals.html
Python Type Hints Are Turing Complete

https://arxiv.org/abs/2208.14755
Building modern Python API backends in 2022

This guide comes from experience building api backends for a variety of startups in different industries, it serves as a starting point for what the state of “best practise” is for how we think about organising Python projects, structuring code, testing, and common libraries we’ve reused across projects.

https://backfill.dev/blog/2022-08-21-modern-python-backends/
Python String Methods to Know

Python's strings have dozens of methods, but some are much more useful than others. Let's discuss the dozen-ish must-know string methods and why the other methods aren't so essential.

https://www.pythonmorsels.com/string-methods/