Rule of order for dot operators?

Thomas 'PointedEars' Lahn PointedEars at web.de
Sun May 17 13:18:41 EDT 2015


Tim Chase wrote:

> On 2015-05-16 12:20, C.D. Reimer wrote:
>> Does python perform the dot operators from left to right or
>> according to a rule of order (i.e., multiplication/division before
>> add/subtract)?
> 
> Yes, Python evaluates dot-operators from left to right.

“.” is _not_ an operator in Python:

<https://docs.python.org/3/reference/lexical_analysis.html#operators>

-- 
PointedEars

Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.



More information about the Python-list mailing list