[Python-ideas] Left division operator

Mike Graham mikegraham at gmail.com
Sun Jul 17 17:38:48 CEST 2011


On Sun, Jul 17, 2011 at 11:19 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Mike Graham, 17.07.2011 16:49:
>>
>> On Sun, Jul 17, 2011 at 8:37 AM, Sturla Molden wrote:
>>>
>>> This would be affected though:
>>>
>>> x = (loooooooooooooooooooong + "line" \
>>> "something")
>>
>> That breaks current code.
>
> No, it doesn't. This code would continue to work as before, but that's
> exactly the problem here. It would be impossible to use a backslash division
> operator at the end of a line even in a properly braced expression, as that
> would turn it into an escape operator.
>
> Stefan

You are recommending this be handled the opposite way than Sturla, to
whom I was responding.

Mike



More information about the Python-ideas mailing list