In article <[EMAIL PROTECTED]>,
 Steve Holden <[EMAIL PROTECTED]> wrote:

> Basically the value you want is shifted up 8 bits. Perhaps I should more 
> understandably have said:
> 
>    12 << 8 == 3072

Or as already suggested in other followups, use os.WEXITSTATUS
(and os.WIFEXITED.)  Not only does this do more precisely the
right thing, it will work on any platform that supports a
POSIX wait -- which doesn't require that exit == status << 8,
only that WEXITSTATUS be able to return that value.

   Donn Cave, [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to