SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

The Vanishing Pattern: from iterators to generators in Python

by on Jul 25, 2013

  • 1,394 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
1,394
Views on SlideShare
1,373
Embed Views
21

Actions

Likes
1
Downloads
11
Comments
0

1 Embed 21

http://lanyrd.com 21

Accessibility

Categories

Upload Details

Uploaded via SlideShare 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
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