Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:27:29 AM UTC-8, Jussi Piitulainen wrote: > ICT Ezy writes: > > On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > >> > >> No, it actually happens left to right. "x = y = z = 0" means "assign > >> 0 to x, then assign 0 to y, then assign 0 to z." It doe

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:27:29 AM UTC-8, Jussi Piitulainen wrote: > ICT Ezy writes: > > On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > >> > >> No, it actually happens left to right. "x = y = z = 0" means "assign > >> 0 to x, then assign 0 to y, then assign 0 to z." It doe

Re: Python variable assigning problems...

2015-12-11 Thread Jussi Piitulainen
ICT Ezy writes: > On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: >> >> No, it actually happens left to right. "x = y = z = 0" means "assign >> 0 to x, then assign 0 to y, then assign 0 to z." It doesn't mean >> "assign 0 to z, then assign z to y, etc." This works: >> >> >>> d = d['f

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 10:20:30 AM UTC-8, Michael Torrie wrote: > On 12/11/2015 11:05 AM, ICT Ezy wrote: > > Deat Ian, Thank you very much your answer, but above answer from > > Robin Koch and your answer is different. What's the actually process > > here? I agree with Robin Koch, but your

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 9:53:10 AM UTC-8, Robin Koch wrote: > Am 11.12.2015 um 17:39 schrieb Ian Kelly: > > On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: > >> Assigning goes from right to left: > >> > >> x,y=y,x=2,3 > >> > >> <=> > >> > >> y, x = 2, 3 > >> x, y = y, x > >> > >> Otherw

Re: Python variable assigning problems...

2015-12-11 Thread Michael Torrie
On 12/11/2015 11:05 AM, ICT Ezy wrote: > Deat Ian, Thank you very much your answer, but above answer from > Robin Koch and your answer is different. What's the actually process > here? I agree with Robin Koch, but your answer is correct. Pl explain > differences ? If you go re-read the answers, yo

Re: Python variable assigning problems...

2015-12-11 Thread Michael Torrie
On 12/11/2015 11:00 AM, ICT Ezy wrote: > Thank you very much your answer, I had not known assignment id Right2Left > before. I done it. Except that Robin was mistaken. Assignment is indeed left to right, though what's being assigned is on the right. > -- https://mail.python.org/mailman/listi

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 8:40:18 AM UTC-8, Ian wrote: > On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: > > Assigning goes from right to left: > > > > x,y=y,x=2,3 > > > > <=> > > > > y, x = 2, 3 > > x, y = y, x > > > > Otherwise the assignment x, y = y, x would not make any sense, since

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
On Friday, December 11, 2015 at 8:24:45 AM UTC-8, Robin Koch wrote: > Am 11.12.2015 um 17:10 schrieb ICT Ezy: > > Dear All, > > Very Sorry for the my mistake here. I code here with mu question ... > > > > My Question: > > > > A,B=C,D=10,11 > > print(A,B,C,D) > > #(10,11,10,11) --> This is OK! > > >

Re: Python variable assigning problems...

2015-12-11 Thread Robin Koch
Am 11.12.2015 um 17:39 schrieb Ian Kelly: On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: Assigning goes from right to left: x,y=y,x=2,3 <=> y, x = 2, 3 x, y = y, x Otherwise the assignment x, y = y, x would not make any sense, since x and y haven't any values yet. And the execution fro

Re: Python variable assigning problems...

2015-12-11 Thread Ian Kelly
On Fri, Dec 11, 2015 at 9:24 AM, Robin Koch wrote: > Assigning goes from right to left: > > x,y=y,x=2,3 > > <=> > > y, x = 2, 3 > x, y = y, x > > Otherwise the assignment x, y = y, x would not make any sense, since x and y > haven't any values yet. > > And the execution from right to left is also

Re: Python variable assigning problems...

2015-12-11 Thread Ian Kelly
On Fri, Dec 11, 2015 at 9:10 AM, ICT Ezy wrote: > Dear All, > Very Sorry for the my mistake here. I code here with mu question ... > > My Question: > > A,B=C,D=10,11 > print(A,B,C,D) > #(10,11,10,11) --> This is OK! > > a=1; b=2 > a,b=b,a > print(a,b) > # (1,2) --> This is OK! This actually resul

Re: Python variable assigning problems...

2015-12-11 Thread Robin Koch
Am 11.12.2015 um 17:10 schrieb ICT Ezy: Dear All, Very Sorry for the my mistake here. I code here with mu question ... My Question: A,B=C,D=10,11 print(A,B,C,D) #(10,11,10,11) --> This is OK! a=1; b=2 a,b=b,a print(a,b) # (1,2) --> This is OK! x,y=y,x=2,3 print(x,y) # (3,2) --> Question: How

Re: Python variable assigning problems...

2015-12-11 Thread ICT Ezy
Dear All, Very Sorry for the my mistake here. I code here with mu question ... My Question: A,B=C,D=10,11 print(A,B,C,D) #(10,11,10,11) --> This is OK! a=1; b=2 a,b=b,a print(a,b) # (1,2) --> This is OK! x,y=y,x=2,3 print(x,y) # (3,2) --> Question: How to explain it? # Not understand this proce

Re: Python variable assigning problems...

2015-12-10 Thread Denis McMahon
On Wed, 09 Dec 2015 09:49:26 -0800, ICT Ezy wrote: > Pl refer question which attached image here: > > link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 I can't access the image with my G+ account because the image owner hasn't given me permission. Perhaps you'd like to post a

Re: Python variable assigning problems...

2015-12-09 Thread Steven D'Aprano
On Thursday 10 December 2015 04:49, ICT Ezy wrote: > Pl refer question which attached image here: > > link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 Do you really expect us to sign in to Google in order to help you? Let me give you some friendly advice. You are asking us fo

Re: Python variable assigning problems...

2015-12-09 Thread Mark Lawrence
On 09/12/2015 17:49, ICT Ezy wrote: Pl refer question which attached image here: link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 Please put your code, query or whatever it is inline here, I'm not going off into the great wide world just to suit you. If it has anything t

Re: Python variable assigning problems...

2015-12-09 Thread Joel Goldstick
On Wed, Dec 9, 2015 at 12:49 PM, ICT Ezy wrote: > Pl refer question which attached image here: > > link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel Goldstick http://joelgoldstick.com/stats/birthdays -- h

Re: Python variable assigning problems...

2015-12-09 Thread Joel Goldstick
On Wed, Dec 9, 2015 at 12:51 PM, Joel Goldstick wrote: > > > On Wed, Dec 9, 2015 at 12:49 PM, ICT Ezy wrote: > >> Pl refer question which attached image here: >> >> link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 >> -- >> https://mail.python.org/mailman/listinfo/python-list >

Python variable assigning problems...

2015-12-09 Thread ICT Ezy
Pl refer question which attached image here: link: https://drive.google.com/open?id=0B5L920jMv7T0dFNKQTJ2UUdudW8 -- https://mail.python.org/mailman/listinfo/python-list