open("ls -l |", "r") ??

Neil Schemenauer nas at arctrix.com
Fri Feb 9 13:29:43 EST 2001


On Fri, Feb 09, 2001 at 05:56:39PM +0000, steveFarris wrote:
> Hi all, is some variation of  the above possible in Python?

Look at os.popen().  You probably be using the directory methods
in os rather than forking two processes to get this data.

  Neil




More information about the Python-list mailing list