import foo vs. python -m foo

2008-10-28 Thread Simon Bierbaum
Hi all, what is the difference between saying "import foo" in an interactive prompt and starting one using "python -m foo"? The -m switch is not covered in the man page, is it even officially supported? I'm asking because one of my modules fails on import in the second version but succeed

handling unexpected exceptions in pdb

2008-07-10 Thread Simon Bierbaum
Hi all, I'm in an interactive session in pdb, debugging my code using pdb.runcall. Somewhere, an exception is raised and lands uncaught on stdout. Is there any way of picking up this exception and at least read the full message, or even accessing its stack trace to determine where exactly

Re: handling unexpected exceptions in pdb

2008-07-10 Thread Simon Bierbaum
Am 10.07.2008 um 20:52 schrieb R. Bernstein: Simon Bierbaum <[EMAIL PROTECTED]> writes: Hi all, I'm in an interactive session in pdb, debugging my code using pdb.runcall. Somewhere, an exception is raised and lands uncaught on stdout. Is there any way of picking up this excep