Advanced Python

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

Detailed shot of a Jungle Carpet Python (Morelia spilota cheynei) in its natural habitat.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

contextlib.aclosing: Close Async Generators Safely

Learn Python contextlib.aclosing to close async generators safely after break, return, exceptions, cancellation, and partial consumption.

Read more

Reading time: 5 minutes
August 30, 2026
Detailed close-up texture of a snake's patterned skin showcasing natural patterns and scales.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

weakref.finalize: Cleanup Without Retaining Objects

Learn Python weakref.finalize for safe fallback cleanup without retaining objects, including alive, detach, shutdown, and explicit close.

Read more

Reading time: 5 minutes
August 30, 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

SimpleNamespace: Lightweight Attribute Objects

Learn Python SimpleNamespace for lightweight attribute objects, dictionary conversion, copying, JSON, and choosing better typed models.

Read more

Reading time: 5 minutes
August 29, 2026
A developer typing code on a laptop with a Python book beside in an office.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

Python ChainMap: Layered Mappings

Learn Python ChainMap for layered configuration and scopes, including precedence, first-map writes, snapshots, and safe mutation.

Read more

Reading time: 5 minutes
August 29, 2026
Detailed close-up of yellow and white albino python scales, capturing texture and pattern.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

itertools.pairwise: Analyze Consecutive Pairs

Learn Python itertools.pairwise to analyze consecutive pairs, calculate deltas, detect transitions, gaps, and ordering problems.

Read more

Reading time: 4 minutes
August 29, 2026
A detailed image of a reticulated python showcasing its patterned scales and intricate skin texture.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

itertools.batched: Process Iterables in Batches

Learn Python itertools.batched to process iterables in chunks, control memory, use strict mode, and build resilient data pipelines.

Read more

Reading time: 5 minutes
August 29, 2026
A developer typing code on a laptop with a Python book beside in an office.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

cmp_to_key: Use Legacy Comparators with sorted

Learn Python cmp_to_key to adapt legacy comparators, sort with locale rules, preserve stability, and avoid inconsistent ordering.

Read more

Reading time: 5 minutes
August 29, 2026
A person reads 'Python for Unix and Linux System Administration' indoors.
Advanced Python
Foto de perfil de Leandro Hirt da Academify

total_ordering: Generate Consistent Comparisons

Learn Python total_ordering to generate consistent comparisons, return NotImplemented, integrate dataclasses, and test ordering rules.

Read more

Reading time: 5 minutes
August 29, 2026