> I want to build a set of commands in the same way that the Cmd module > allows one to do, but I want all lines entered at the prompt that are > not defined by my interpreter to be handled by python as if it had > been entered at the python interactive interpreter prompt. Check out the pdb module, which does this. Alex.