Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8424 > unrolled thread
| Started by | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| First post | 2011-06-24 20:56 -0400 |
| Last post | 2011-06-24 20:56 -0400 |
| Articles | 1 — 1 participant |
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.
Re: Interpreting Left to right? Terry Reedy <tjreedy@udel.edu> - 2011-06-24 20:56 -0400
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2011-06-24 20:56 -0400 |
| Subject | Re: Interpreting Left to right? |
| Message-ID | <mailman.398.1308963438.1164.python-list@python.org> |
On 6/24/2011 5:08 PM, Tycho Andersen wrote: > "An assignment statement evaluates the expression list (remember that > this can be a single expression or a comma-separated list, the latter > yielding a tuple) and assigns the single resulting object to each of > the target lists, from left to right." This is the 'other' type of 'multiple assignment' a,b,c = 1,2,3 Order matters here too. a,a[1] = [1,2],3 a # [1,3] # but a[1], a = 3, [1,2] will either fail or modify what a was previously bound to before rebinding a to [1,2]. -- Terry Jan Reedy
Back to top | Article view | comp.lang.python
csiph-web