allow line break at operators

Chris Rebert clp2 at
Fri Aug 12 19:03:04 CEST 2011

On Fri, Aug 12, 2011 at 3:39 AM, Ben Finney <ben+python at> wrote:
> Seebs <usenet-nospam at> writes:
>> Question for y'all:
>> Has anyone here ever ACTUALLY encountered a case where braces -- not
>> indentation -- did not match intent in a C-like language?  I'm talking
>> only about cases where braces are *actually present*.
> What a strange limitation. Why are you not comparing apples with apples?
> The correct comparison would be “getting the braces to match the
> intended structure” compared with “getting the indentation to match the
> intended structure”.

One argument I've heard from braces fans is that sometimes they want
their own structure, which does not match the actual block structure.

FILE* f = fopen(...);
    // do stuff with f
    // at this indent level
// back to normal

But really this is just working around other limitations in the
language (i.e. lack of a with-statement equivalent).


More information about the Python-list mailing list