Re: svn commit: r1156375 - /subversion/branches/fs-py/subversion/python/svn/fs.py
From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 10 Aug 2011 19:35:31 -0400
On Wed, Aug 10, 2011 at 19:15, Branko Čibej <brane_at_xbc.nu> wrote:
With the prior constructions:
open(foo).read()
If one of those .read() or .write() calls fails, *and* somebody does
Switching to:
with open(foo) as f:
You're going from a single expression to a control flow construct,
> And yes, the CPython docs do say that file objects are closed when their
Ha! And the third stanza says "Simple is better than complex."
> There's no call to jump all over people because you don't agree with
If you call that "jump[ing] all over people", then I think you're
Cheers,
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.