About

Welcome to Panela, Matt Harrison's take on mostly Open Source, Linux, Python, innovation in those areas, other buzzwords and Dick Proenneke. It comes complete with the illustrations as needed. Note the opinions expressed here are merely my opinions and not the opinions of my employer.

about Matt

Calendar

««Nov 2009»»
SMTWTFS
1234567
8910
11
12
1314
151617
18
192021
22232425262728
2930

Mailing List

My RSS Feeds








Cheatsheets/Handouts/Slides for Intermediate Python (and Testing)

posted 2009.10.07 Wed

Tomorrow I'm giving a workshop on Intermediate Python at the UTOS. In the session I'll discuss testing with the unittest and doctest modules for Python. Then I discuss a bunch of what I consider to be intermediate Python constructs. Included are decorators, list comprehensions, generators, generator expressions, functional constructs and function arguments. Included when possible are explanations of why stuff works (such as generators and decorators) rather than just throwing out examples. Hopefully the theory helps with understanding how to apply this knowledge later.

One might wonder why I'm bundling testing in with the talk? I guess it's excusable for beginners to neglect testing ;)

I created two handouts (generated with rst2odt) for the workshop, one on testing and another on the intermediate stuff. I've also generated my slides (via rst2odp of course). A tarball containing said materials is here.

Are people interested in handouts/cheatsheets? Should I throw the source up to github if anyone wants to collaborate?

tags:              

links: digg this    del.icio.us    reddit