Shared publicly  - 
 
I've been fiddling around for part of today with adding an interactive command-line interface to a small Python script we run each week to generate a status report from a template. I didn't want to fuzz around with raw_input() and boring cascades of if statements, so I thought to use the cmd module. Surprisingly, this opened a chasm of confusion between the mental model of scripts-you-tell-what-to-do (which the cmd module, or any shell, uses) and that of scripts-that-tell-you-what-to-do (which I had started out with myself).
1
Add a comment...