Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90758 > unrolled thread

Re: Rule of order for dot operators?

Started byTim Chase <python.list@tim.thechases.com>
First post2015-05-16 14:38 -0500
Last post2015-05-17 19:18 +0200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Rule of order for dot operators? Tim Chase <python.list@tim.thechases.com> - 2015-05-16 14:38 -0500
    Re: Rule of order for dot operators? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-17 19:18 +0200

#90758 — Re: Rule of order for dot operators?

FromTim Chase <python.list@tim.thechases.com>
Date2015-05-16 14:38 -0500
SubjectRe: Rule of order for dot operators?
Message-ID<mailman.86.1431807388.17265.python-list@python.org>
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.

-tkc

[toc] | [next] | [standalone]


#90779

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2015-05-17 19:18 +0200
Message-ID<22376984.KGljeZNGsi@PointedEars.de>
In reply to#90758
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web