Updated over 6 years ago (01 Jul 2008 at 06:42 PM) recent activity
Snippets from the excellent book Dive Into Python by Mark Pilgrim.
For more information, visit http://www.diveintopython.org
Want to write shorter, cleaner code? Have an unfortunate situation where you need to fit as much as you can in one expression? Prefer a quick dose of hacks to spending the rest of your life...
CC Attribution Non-Commercial Share Alike 3.0-US iCapsid 12 classes decorators dictionaries dictionary comprehensions filter functions generator expressions iterate lambda functions list comprehensions list operators map python quotes reduce strings substrings switch statements tips tricks truthfulness zip