Advanced Python

Level up your skills. Learn complex Python concepts like concurrency, GIL, multiprocessing, asyncio, and object-oriented programming through hands-on experience.

Detailed view of programming code in a dark theme on a computer screen.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python NewType: Keep IDs Distinct

Learn Python NewType to keep IDs, codes, units, and primitive values distinct, validate boundaries, and prevent domain mix-ups.

Read more

Reading time: 5 minutes
August 29, 2026
Close view of a python resting on sandy terrain outdoors in natural habitat.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python Never: Mark Unreachable Code

Learn Python Never for non-returning functions, unreachable code, and exhaustive unions with assert_never, Literal, Enum, and match.

Read more

Reading time: 5 minutes
August 29, 2026
Detailed shot of a Jungle Carpet Python (Morelia spilota cheynei) in its natural habitat.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python Concatenate: Change Parameters

Learn Python Concatenate to add or hide leading parameters in typed decorators with ParamSpec, contexts, locks, and dependencies.

Read more

Reading time: 4 minutes
August 28, 2026
A close-up view of a person's hand signing a business contract on a desk with a pen.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python ParamSpec: Preserve Signatures

Learn Python ParamSpec to preserve complete function signatures in decorators, callbacks, async wrappers, and higher-order utilities.

Read more

Reading time: 4 minutes
August 28, 2026
Close-up of hands typing on a laptop keyboard, Python book in sight, coding in progress.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python TypeIs: Narrow Both Branches

Learn Python TypeIs to narrow true and false branches, compare it with TypeGuard, and build sound reusable type predicates.

Read more

Reading time: 5 minutes
August 28, 2026
Hands typing code on a laptop in a workspace. Indoor setting focused on software development.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python TypeGuard: Refine Types Safely

Learn Python TypeGuard to narrow types and validate collections, TypedDict, Protocol, and external data with runtime checks and static safety.

Read more

Reading time: 5 minutes
August 28, 2026
Close-up view of a computer screen displaying code in a software development environment.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python typing.Self: Fluent Return Types

Learn Python typing.Self for fluent methods, classmethods, builders, clones, Protocol, context managers, generics, and subclass-preserving returns.

Read more

Reading time: 5 minutes
August 28, 2026
A conceptual image showing error code projected on binary data with smoke.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python ExceptionGroup: Multiple Errors

Learn Python ExceptionGroup for multiple errors, except*, nested groups, TaskGroup, filtering, logging, API compatibility, and batch validation.

Read more

Reading time: 4 minutes
August 28, 2026