* Thomas Petazzoni <[email protected]> [2012-04-19 09:09:00]:
> Le Thu, 19 Apr 2012 09:03:00 +0200, > David MENTRE <[email protected]> a écrit : > > > We should call f.close(), shouldn't we? Or, once again, I haven't > > understood how Python works. :-) > > Ah, correct. Actually, it's more "Python-y" to use: with open(GIS_DATABASE_LAG_FILE) as f: # do stuff # f automatically closed when exiting the with block /Max -- Maxime Petazzoni <http://www.bulix.org> ``One by one, the penguins took away my sanity.'' Writing software in California
signature.asc
Description: Digital signature
