Sample Chapter for “The Python Standard Library By Example”

Addison-Wesley has posted a PDF of Chapter 2, “Data Structures,” from The Python Standard Library By Example. The file contains 145 pages covering the collections, array, heapq, bisect, Queue, struct, weakref, copy, and pprint modules. It also includes the table of contents and index from the complete book, for reference.