Python has two modules that pull and parse command line-type options: an older one called getopt, and a newer one (from Python 2.3) called optparse. I’ve used both, though I’ve used getopt a lot more. What I’ve never gotten around to doing before is converting a getopt-based script to an optparse one.

Wow. Conversion is an eye-opener…it makes it clear how much cleaner, straightforward, and powerful optparse is. Don’t get me wrong; getopt has been a workhorse for a long time now. But optparse rocks. If you have stuff you’ve been waiting to switch over, stop waiting. Optparse is REALLY nice.

Here is the blip.tv page, and direct MP3 download link for the February 8th episode.

Note: I’ve gone ahead and shortened the episode titles from Kenzoid’s Autonomous Zone to KAZ…because, well, it’s a lot shorter! Comments welcome.

After rambling for ENTIRELY too long about my recorder and my gadget bag, I spend some time on Dave Slusher’s Jan 16th podcast, where he discusses “open music”. I realize I need more open music in my life.

Links: