Wrong exist status for os.system, os.poepen, etc.

Hendrik van Rooyen mail at microcorp.co.za
Wed Mar 7 06:50:59 CET 2007


"Paolo Pantaleo" <paolopantaleo at gmail.com> wrote:
> $./x
> $echo $?
> 20
> 
> $ python
> 
> give the following commands:
> 
> >>> import os
> >>> os.system("/tmp/x")
> 5120
> 

256 times 20 is 5120
this is a big/little endian little bug

- Hendrik





More information about the Python-list mailing list