Creative Sol House

New Features of Python 3.12

Python is a high-level, general-purpose programming language. It supports multiple programming paradigms, including structured, object-oriented and functional programming. In Python 3.12, now you can use a TypedDict as source of types to hint keyword arguments used in a function. And the type parameter syntax provides a cleaner way to specify types in a generic class, function, or type alias.  

The widely used Linux profiler tool perf works with Python, but only returns information about what's happening at the C level in the Python runtime. Information about actual Python program functions doesn't show up. Python 3.12 enables an opt-in mode to allow perf to harvest details about Python programs, not just the runtime. The opt-in can be done at the environment level or inside a Python program with the sys.activate_stack_trampoline function.

Facebook
Twitter
LinkedIn

Leave a Comment

The Digital World Highlights