Hi, I found a bug in my patch in handling a single-line compound statement. Here's an updated patch that fixes the problem. The only change is in python_interactive_command to add a newline to the end of the argument. Thanks, Yit July 28, 2012