Problems with os.system

jepler at unpythonic.net jepler at unpythonic.net
Fri Sep 2 18:09:16 EDT 2005


Repeated calls to system() seem to cause no problem here.  

I ran the following program:
	import os

	for i in xrange(10000):
	    assert os.system("true") == 0
in around 25 seconds, the 'for' loop completed, and the 'true' command
always returned 0 from system, as expected.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050902/946913c1/attachment.sig>


More information about the Python-list mailing list