Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Core Python: Implementing Iterators, Iterables and Collections

via Pluralsight

Overview

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.

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.

Syllabus

  • Course Overview 1min
  • Iterators and Iterables 47mins
  • Collection Protocol Overview 5mins
  • The Collection Construction Convention 6mins
  • The Container Protocol 5mins
  • The Sized Protocol 4mins
  • The Iterable Protocol 6mins
  • The Sequence Protocol 31mins
  • Refactoring to Improve Performance 11mins
  • The Collection Abstract Base Classes 4mins
  • The Set Protocol 10mins

Taught by

Austin Bingham

Reviews

4.6 rating at Pluralsight based on 54 ratings

Start your review of Core Python: Implementing Iterators, Iterables and Collections

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.