Re: a *= b not equivalent to a = a*b

2016-08-26 Thread mlz
iday, August 26, 2016 at 1:42:31 AM UTC-7, Christian Gollwitzer wrote: > Am 26.08.16 um 09:53 schrieb Erik: > > On 26/08/16 08:44, mlz wrote: > >> Here's the key: > >> > >> $ python2 > >> Python 2.7.10 ... > >>>>> 1/2 > >>

Re: a *= b not equivalent to a = a*b

2016-08-26 Thread mlz
ction leak, which is probably why it has been fixed in python 3. -= m =- On Friday, August 26, 2016 at 12:54:02 AM UTC-7, Erik wrote: > On 26/08/16 08:14, mlz wrote: > > > > I was being facetious, but behind it is a serious point. Neither the APL > > nor the J languages u

Re: a *= b not equivalent to a = a*b

2016-08-26 Thread mlz
Aha. That's interesting. On Friday, August 26, 2016 at 2:11:32 AM UTC-7, Peter Otten wrote: > mlz wrote: > > > Yes, I just worked that out. It's the integer math that's the problem. > > > > I guess this has been fixed in python 3, but unfortunately

a *= b not equivalent to a = a*b

2016-08-25 Thread mlz
I've been playing with the binomial function, and found that in the below code, rs *= x does not behave the same way as rs = rs * x. When I set FAIL to True, I get a different result. Both results are below. I had read that the two were equivalent. What am I missing? thanks, -= miles =- #!