• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Vanishing Pattern: from iterators to generators in Python
 

The Vanishing Pattern: from iterators to generators in Python

on

  • 2,200 views

The core of the talk is refactoring a simple iterable class from the classic Iterator design pattern (as implemented in the GoF book) to compatible but less verbose implementations using generators. ...

The core of the talk is refactoring a simple iterable class from the classic Iterator design pattern (as implemented in the GoF book) to compatible but less verbose implementations using generators. This provides a meaningful context to understand the value of generators. Along the way the behavior of the iter function, the Sequence protocol and the Iterable interface are presented. The motivating examples of this talk are database applications.

Statistics

Views

Total Views
2,200
Views on SlideShare
2,179
Embed Views
21

Actions

Likes
1
Downloads
13
Comments
0

1 Embed 21

http://lanyrd.com 21

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    The Vanishing Pattern: from iterators to generators in Python The Vanishing Pattern: from iterators to generators in Python Presentation Transcript