[Python-ideas] Left division operator

Carl Johnson cmjohnson.mailinglist at gmail.com
Sun Jul 17 06:45:16 CEST 2011


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"?
As to the order of operations problem, why not just do
x = eval_first
y = eval_second
r = y/x
?


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /