Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: module inspect error
Post: module inspect error

Hi, I am running python on Ubuntu 18, I have following errors when I run import inspect, appreciate any tips to fix the problem. thank you Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) [GCC 7.3...
jupiter General Coding Help 1 2,834 Sep-17-2018, 08:03 AM
    Thread: popen and close
Post: RE: popen and close

Thanks for the response, I know that os.popen is obsoleted, but I just want to know in general to use os.popen or subprocess.popen are safe, won't cause memory leak. So, there is no need to use close ...
jupiter General Coding Help 2 6,075 Sep-11-2018, 06:23 AM
    Thread: popen and close
Post: popen and close

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 a...
jupiter General Coding Help 2 6,075 Sep-11-2018, 03:38 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020