Tagged articles
10 articles
Page 1 of 1
Data Party THU
Data Party THU
Aug 19, 2025 · Fundamentals

5 Hidden Python Features That Can Supercharge Your Code

This article uncovers five lesser‑known Python features—contextlib.suppress, sys.setrecursionlimit, typing.Literal, the __missing__ magic method, and __subclasshook—explaining when to use them, showing concise code examples, and highlighting the practical benefits they bring to everyday programming.

Advanced FeaturesCode OptimizationPython
0 likes · 7 min read
5 Hidden Python Features That Can Supercharge Your Code
Python Programming Learning Circle
Python Programming Learning Circle
Dec 5, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault, and Performance Improvements

Python 3.13 introduces a suite of typing enhancements—including a ReadOnly type for TypedDict, a @warnings.deprecated decorator, the TypeIs construct, is_protocol and get_protocol_members utilities, default TypeVar support with has_default(), the NoDefault sentinel, and several performance and API clean‑ups—providing developers with more expressive and efficient static type checking capabilities.

DeprecatedPython 3.13TypeVar
0 likes · 8 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault, and Performance Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Oct 18, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements

Python 3.13 introduces several typing enhancements—including a ReadOnly type for TypedDict, a @warnings.deprecated decorator, the TypeIs narrowing helper, is_protocol and get_protocol_members utilities, default type support for TypeVar/ParamSpec/TypeVarTuple, the NoDefault sentinel, and notable performance gains by removing legacy typing namespaces.

DeprecatedPython3.13TypeIs
0 likes · 8 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Oct 16, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault and Performance Improvements

Python 3.13 adds seven new typing enhancements—including ReadOnly TypedDict fields, a @warnings.deprecated decorator, TypeIs for type narrowing, is_protocol and get_protocol_members utilities, default TypeVar support, the NoDefault sentinel, and import‑time optimizations—each illustrated with code examples.

Python 3.13TypeVarreadonly
0 likes · 7 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault and Performance Improvements
Test Development Learning Exchange
Test Development Learning Exchange
Jul 29, 2024 · Fundamentals

Leveraging Python dataclasses and typing for clean, type‑safe data models

This article explains how Python's dataclasses module, combined with the typing library, can automatically generate boilerplate methods, provide rich type annotations, support optional and union types, enable dictionary serialization, perform runtime checks, and be extended with field metadata for robust, maintainable code.

Code ExamplesPythondataclasses
0 likes · 6 min read
Leveraging Python dataclasses and typing for clean, type‑safe data models
Laravel Tech Community
Laravel Tech Community
Oct 25, 2022 · Fundamentals

Python 3.11 Stable Release: Major New Features and Changes

Python 3.11 has been officially released, introducing a range of new language features such as fine‑grained error locations, exception groups, built‑in TOML parsing, asyncio task groups, enhanced regular expressions, significant performance gains, and numerous typing improvements like Self types and variadic generics.

Pythonlanguage featuresprogramming
0 likes · 2 min read
Python 3.11 Stable Release: Major New Features and Changes