Xah Lee wrote:
> does anyone know why the folllowing prints to the screen?
> # python
> import os
> os.system(r"ls")

Steve Holden wrote:
> It only prints to the screen when standard output of the invoking
> process is the screen. The sub-process forked by os.system inherits
> stdin stdout and stderr from the invoking process.

Thanks.

 Xah
 [EMAIL PROTECTED]
∑ http://xahlee.org/

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to