FDs will be closed after exception automatically in python2.7?
lampahome
pahome.chen at mirlab.org
Mon Jun 10 06:18:07 EDT 2019
as title,
I confused will fd will be close after exception automatically?
Like:
try:
fd=open("file","w+")
fd.get() //any useless function of fd
except Exception:
print 'hi'
More information about the Python-list
mailing list