[Python-ideas] Left division operator
Sturla Molden
sturla at molden.no
Sun Jul 17 14:37:20 CEST 2011
Den 17.07.2011 06:45, skrev Carl Johnson:
> In Python, \ has a very consistent meaning as "escape character." I
> would hate for that consistency to be broken by adding a new meaning
> to \. For example, right now
>
> x = loooooooooooooooooooong + "line" \
> "something"
>
> is valid. But if \ were also an operator, would it mean something
> different than "line" \ "something"?
>
Not if it's followed by a newline.
This would not be affected:
x = loooooooooooooooooooong + "line" \
"something"
This would be affected though:
x = (loooooooooooooooooooong + "line" \
"something")
Sturla
More information about the Python-ideas
mailing list