A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/330602.html below:

os.system(r"ls") prints to screen??

os.system(r"ls") prints to screen?? os.system(r"ls") prints to screen??Xah Lee xah at xahlee.org
Wed Sep 7 02:24:24 EDT 2005
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
 xah at xahlee.orghttp://xahlee.org/


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4