You are here: Home Dive Into Python 3

Secret Leftover Page

You step in the stream / but the water has moved on. / This page is not here.
— 404 Not Found haiku

 

Huh?

This book used to have a chapter called “Iterators & Generators,” but I split the chapter in half so I could introduce Python classes before talking about iterators. The content that used to be at this address is now in one of those two chapters:

But since you’re here, I’d like to talk about some of the small stuff I sweated while writing this book.

The online edition loads as quickly as it does because

  1. HTML is compressed.
  2. Scripts and stylesheets are minimized by YUI Compressor.
  3. Scripts are combined to reduce HTTP requests.
  4. Stylesheets are combined and inlined to reduce HTTP requests.
  5. Unused CSS selectors and properties are removed on a page-by-page basis with pyquery.
  6. HTTP caching and other server-side options are optimized based on advice from YSlow and Page Speed.
  7. The text uses Unicode characters in place of graphics wherever possible.
  8. The entire book was lovingly hand-authored in HTML 5 to avoid markup cruft.

© 2001–9 Mark Pilgrim