[Python-Dev] PEP 340 - possible new name for
Phillip J. Eby
pje at telecommunity.com
Fri Apr 29 19:54:43 CEST 2005
At 10:42 AM 4/29/05 -0700, Aahz wrote:
>On Fri, Apr 29, 2005, Guido van Rossum wrote:
> > [Phillip J. Eby]
> >> Although I'd personally prefer a no-keyword approach:
> >> synchronized(self):
> >> with_file("foo") as f:
> >> # etc.
> > I'd like that too, but it was shot down at least once. Maybe we can
> > resurrect it?
> > opening("foo") as f:
> > # etc.
>I'm still -1 for the same reason I mentioned earlier: function calls
>spanning multiple lines are moderately common in Python code, and it's
>hard to distinguish these cases because multi-line calls usually get
>indented like blocks.
But the indentation of a multi-line call doesn't start with a colon. Or
are you saying you're concerned about things like:
) as fidgety, widgety, foo:
Which is quite ugly, to be sure, but then I don't see where adding an extra
More information about the Python-Dev