Python 3.11 [new] Guide

: Caching code to speed up module loading ensures that programs begin execution significantly faster than in previous versions. 2. Revolutionary Error Reporting

So, why should you upgrade to Python 3.11? Here are a few compelling reasons: python 3.11

Variadic type hints are useful when working with functions that accept a variable number of arguments, such as *args or **kwargs . : Caching code to speed up module loading

Several enhancements arrived to make code more expressive and robust: python 3.11