All Samples(5188) | Call(5187) | Derive(0) | Import(1)
close() -> None or (perhaps) an integer. Close the file. Sets data attribute .closed to True. A closed file cannot be used for further I/O operations. close() may be called more than once without error. Some kinds of file objects (for example, opened by popen()) may return an exit status upon closing.
src/m/a/matplotlib-HEAD/examples/user_interfaces/interactive.py matplotlib(Download)
print('>>', line)
push(line)
inFile.close()
matplotlib.interactive(1) # turn on interaction
src/p/e/personis-0.933/personis/examples/aelog/oauth2client/clientsecrets.py personis(Download)
obj = simplejson.load(fp)
finally:
fp.close()
except IOError:
raise InvalidClientSecretsError('File not found: "%s"' % filename)
src/p/y/pymc-HEAD/pymc/examples/gp/more_examples/MKMsalmon/salmon_sampler.py pymc(Download)
for line in r:
lines.append(line)
f.close()
csvdata = zeros((len(lines), 2),dtype=float)
src/p/y/pymc-HEAD/pymc/examples/gp/more_examples/MKMsalmon/salmon.py pymc(Download)
for line in r:
lines.append(line)
f.close()
data = zeros((len(lines), 2),dtype=float)
src/p/y/pyinotify-HEAD/python2/examples/chain.py pyinotify(Download)
notifier.loop()
finally:
fo.close()
src/p/y/pyinotify-0.9.4/python2/examples/chain.py pyinotify(Download)
notifier.loop()
finally:
fo.close()
src/g/e/getfo-HEAD/trunk/texml/docs/code/example_full.py getfo(Download)
# Clean up resources out.close()
src/c/a/camfr-HEAD/trunk/camfr/examples/tutorial/tutorial7.py camfr(Download)
print >> outfile, x, index(x), slab.n(Coord(x, 0, 0)).real
outfile.close()
src/c/a/camfr-HEAD/trunk/camfr/examples/tutorial/tutorial6.py camfr(Download)
print >> outfile
outfile.close()
src/c/a/camfr-HEAD/trunk/camfr/examples/tutorial/tutorial3.py camfr(Download)
print >> outfile, L, abs(stack.R12(0,0))
outfile.close()
Previous 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 Next