os.popen vs os.system

rbt rbt at athop1.ath.vt.edu
Tue May 17 14:37:19 EDT 2005


Peter Hansen wrote:
> I don't think there's any significant difference between the above 
> (assuming you add in the missing quotation marks) and 
> os.system('shutdown -r -f'), except that the os.system() approach is 
> shorter and more readable if you are simply discarding or printing the 
> output like that.

Thanks Peter!



More information about the Python-list mailing list