Tutorial on Python Iterators and Generators
Short Description
In our tutorial on Python network pro- ….. But those applications would be too huge to deal with in this tutorial, so we have …
Website: heather.cs.ucdavis.edu | Filesize: 142kb
Content
Tutorial on Python Iterators and Generators
Norman Matloff
University of California, Davis
c
2005-2007, N. Matloff
May 2, 2007
Contents
1 Iterators 2
1.1 What Are Iterators? Why Use Them? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Example: Fibonacci Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Example: “Circular” Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Example: Subclassing the file Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.5 The itertools Module . . . . . . . . . . . . . . . . . ….
Get the file Download here
Related Books:Related Searches: python network, university of california davis, circular array, iterators, fibonacci numbers
Comments
Leave a Reply