import commands

Huaming Wang hwa786 at casbah.acns.nwu.edu
Sat May 29 13:40:15 EDT 1999


I am not sure if the "try...except..." structure can satisfy you. I think if
you use it like
try
   xxxx
except yyy, detail:
   zzzz
you can get the error information from "detail"

Huaming Wang

Marco Mariani wrote:

> Hi all!
> Will there be a commands.getstatuserror() for us to use, which leaves
> the stdout untouched? Or will I keep using the one I hacked with a
> tempfile?
>
> Thanks
>
> --
> "If you're going to kill someone there isn't much reason to get all worked
>  up about it and angry.  Any discussions beforehand are a waste of time.
>  We need to smile at Novell while we pull the trigger."
>
>  - Jim Allchin, Microsoft corp. -

-





More information about the Python-list mailing list