Idioms and Anti-Idioms Question
J. Cliff Dyer
jcd at sdf.lonestar.org
Tue Jun 23 11:50:06 EDT 2009
On Mon, 2009-06-22 at 22:52 +0000, Peter Billam wrote:
> I wonder on what grounds PEP8
> says "The preferred place to break around a binary operator is
> *after* the operator" ?
> Perhaps it's just the "continutation marker" rationale?
> Regards, Peter
> Peter Billam www.pjb.com.au www.pjb.com.au/comp/contact.html
If the lines got separated, a leading + could disappear into its line
without any errors showing up. A trailing + would raise a syntax error.
>>> spam = 6
>>> spam +
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> + spam
More information about the Python-list