allow line break at operators

Chris Angelico rosuav at gmail.com
Thu Aug 11 01:55:36 CEST 2011


On Thu, Aug 11, 2011 at 12:32 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> Chris stated that putting the unary + at the end of the line
> prevents "that", that being applying the unary + operator to the value on
> the right. But that is not the case -- unary prefix operators in Python can
> be separated from their operands by whitespace, including newlines.
>

Right, I forgot that. It certainly would not be normal to do it that
way, though.

ChrisA



More information about the Python-list mailing list