allow line break at operators

Chris Angelico rosuav at
Wed Aug 10 18:42:06 EDT 2011

On Wed, Aug 10, 2011 at 10:51 PM, Ben Finney <ben+python at> wrote:
> Seebs <usenet-nospam at> writes:
>> I've seen bits of code in preprocessing-based "Python with {}" type
>> things, and they still look like Python to me, only they favor
>> explicit over implicit a little more strongly.
> They introduce unnecessary ambiguity: the indentation-as-structure and
> braces-as-structure can then disagree.
> The ambiguity is resolved by having exactly one of indentation or braces
> determining structure: Python uses indentation. In which case, braces
> are pointless for indicating block structure.

That's why it wouldn't be Python. It would have to use the braces and
not the indentation.

PS. I mistakenly sent this to a Gilbert & Sullivan group first. Oddly
enough, opera-goers are not used to discussing the relative merits of
braces vs indentation in code.

More information about the Python-list mailing list