Sep-11-2018, 03:38 AM
Hi,
In a statement obj = os.popen("ls").read()
Should a close statement like obj.close() be called or it is not necessary?
Also for subp = subprocess.Popen(...), should a close statement be called after it?
Thank you.
In a statement obj = os.popen("ls").read()
Should a close statement like obj.close() be called or it is not necessary?
Also for subp = subprocess.Popen(...), should a close statement be called after it?
Thank you.