- Course
Core Python 3: Implementing Iterators, Iterables, and Collections
Iterators, Iterables and Collections are central to how Python works. In this course, you'll move beyond the built-in and standard library collections, and learn how to build your own iterators, iterables and collections from the ground up.
- Course
Core Python 3: Implementing Iterators, Iterables, and Collections
Iterators, Iterables and Collections are central to how Python works. In this course, you'll move beyond the built-in and standard library collections, and learn how to build your own iterators, iterables and collections from the ground up.
Get started today
Access this course and other top-rated tech content with one of our business plans.
Try this course for free
Access this course and other top-rated tech content with one of our individual plans.
This course is included in the libraries shown below:
- Core Tech
What you'll learn
Collections in Python are organized according to a scheme of protocols such as Container, Iterable, and Sequence. In this course, Core Python 3: Implementing Iterators, Iterables, and Collections, you'll understand how the built-in collections are situated in this scheme. First, you'll discover how collections support different protocols and how those protocols work together to produce powerful, and yet easy-to-use collections.
Next, you’ll learn how to design and code new iterators for existing collections, and for whole new collections that meet your specific needs, by following a process of test-driven development. Finally, you'll learn how to optimize collections for performance, so new collections can be both correct, and fast.
When you’re finished with this course, you’ll gain a deeper insight into how Python works beneath the surface.
Core Python 3: Implementing Iterators, Iterables, and Collections
-
Version Check | 20s
-
Iterators and Iterables | 6m 59s
-
Motivating Iterators: Tree Traversals | 2m 39s
-
Breath-first, Level-order Iterator | 6m 18s
-
Depth-first, Pre-order Iterator | 4m 23s
-
Depth-first, In-order Iterator | 4m 20s
-
Filtering Iterators | 5m 9s
-
Transforming Iterators | 3m 21s
-
Iterables | 3m 46s
-
The Alternative Iterable Protocol | 4m 8s
-
The Extended iter() Form | 4m 24s
-
Summary | 1m 33s