Python Official Tutorial: Classes
|
Introduces Python’s class system, inheritance, and dynamic typing—often the moment when developers realize how flexible and powerful Python’s OOP model is.
|
Facts and Myths about Python Names and Values (Ned Batchelder)
|
Explains Python’s object model, variable binding, and mutability. This post is a classic “aha!” reference for understanding how assignment and references work in Python.
|
Python’s First-Class Functions (Real Python)
|
Demonstrates that functions are first-class objects in Python, enabling powerful patterns like higher-order functions and decorators.
|
Python Closures and Callbacks (Dan Bader)
|
Explains closures, lexical scoping, and how Python supports callback functions—a key insight for functional programming in Python.
|
Primer on Python Decorators (Real Python)
|
A deep dive into decorators, showing how Python’s syntax and first-class functions combine for powerful, reusable code patterns.
|
Python Data Model: Special Method Names
|
Explains Python’s “dunder” methods (like __init__ , __str__ , __iter__ ), which unlock operator overloading and custom behavior—often an advanced “aha!” moment.
|
Python Generators – A Complete Introduction (Real Python)
|
Explains how generators and the yield statement enable lazy evaluation and efficient iteration over large or infinite data sets.
|
Python Official Tutorial: Modules
|
Introduces modules and packages, showing how Python’s import system enables code organization and reuse.
|
Context Managers and the with Statement (Real Python)
|
Explains how context managers and the with statement automate resource management, such as opening and closing files.
|
Descriptor HowTo Guide (Python Docs)
|
Describes Python’s descriptor protocol, which underlies properties, methods, and more—an advanced “aha!” for understanding Python internals.
|
What is the Python Global Interpreter Lock (GIL)? (Stack Overflow)
|
Clarifies the GIL, threading, and concurrency in Python—crucial for understanding Python’s multi-threading limitations and multiprocessing alternatives.
|
Errors and Exceptions (Python Official Tutorial)
|
Explains Python’s exception model, try/except blocks, and custom exceptions—key for writing robust Python code.
|