On this page
Advanced Python Internals
Prev: Intermediate Python & Software Engineering | Up: tutorials | Next: Popular Application Domains
Rel: python3, python decorators, python metaprogramming, itertools, asyncio, gc, ctypes
Ref: docs.python.org — The Python Language Reference
Tags: #public #python3 #tutorials #internals #index
Overview
Runtime mechanics, lazy evaluation, metaprogramming, concurrency models, object model internals, memory management, and C interoperability using Python's built-ins and standard library.
Subtopics
- Iterators and Generators — The iterator protocol, lazy evaluation with
yieldandyield from, generator expressions, coroutines, anditertoolspipelines. - Decorators and Closures — Closures, lexical scope (
nonlocal), function and class decorators,@functools.wraps, parameterized decorators, and stdlib decorator utilities. - Concurrency and Parallelism — Asynchronous I/O (
asyncio), multithreading (threading,queue), multiprocessing (multiprocessing), andconcurrent.futures. - Memory Management and Internals — Reference counting, cyclic garbage collection (
gc), weak references (weakref),__slots__,tracemalloc, and bytecode disassembly (dis). - Python Object, MRO & Initialization Dunder Flow — The
object/typehierarchy, C3 linearization Method Resolution Order (__mro__,super()), and the complete dunder method execution flow triggered on class creation and object initialization. - Foreign Function Interfaces — Calling C shared libraries with
ctypes, C structs and callbacks, binary packing withstruct, and zero-copymemoryviewbuffers.
Linked from
- tuts/python3
- tuts/python3/tutorials
- tuts/python3/tutorials/advanced_python_internals/concurrency_and_parallelism
- tuts/python3/tutorials/advanced_python_internals/decorators_and_closures
- tuts/python3/tutorials/advanced_python_internals/foreign_function_interfaces
- tuts/python3/tutorials/advanced_python_internals/iterators_and_generators
- tuts/python3/tutorials/advanced_python_internals/memory_management_and_internals
- tuts/python3/tutorials/advanced_python_internals/python_object_mro_and_initialization
- tuts/python3/tutorials/intermediate_python_and_software_engineering
- tuts/python3/tutorials/intermediate_python_and_software_engineering/testing_and_debugging
- tuts/python3/tutorials/popular_application_domains
Related notes
- tuts/python3/tutorials Linked here; links to this page; shared tags: #index, #tutorials
- tuts/python3/tutorials/advanced_python_internals/concurrency_and_parallelism Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/advanced_python_internals/decorators_and_closures Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/advanced_python_internals/foreign_function_interfaces Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/advanced_python_internals/iterators_and_generators Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/advanced_python_internals/memory_management_and_internals Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/advanced_python_internals/python_object_mro_and_initialization Linked here; links to this page; shared tags: #internals, #tutorials
- tuts/python3/tutorials/intermediate_python_and_software_engineering Linked here; links to this page; shared tags: #index, #tutorials
- tuts/python3/tutorials/popular_application_domains Linked here; links to this page; shared tags: #index, #tutorials
- tuts/python3 Linked here; links to this page; shared tags: #index