Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Liam Clarke
Hi Ryan, I see what confused you; the " >>> number + 1 6 >>> print number 5 " part. Yeah, it's only evaluating the the first one. So you're asking it "What's number + 1"? Whereas, >>> number = number + 1 or >>> number += 1 Is saying "Make number equal number plus 1" Ha, it's all a learning

Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Alan Gauld
> But when i use a number = number + 1 > right after the value stays the same, I'm not sure what you mean by that. > Now i thought that number = number + 1 just wasn't > vailed in python untill i tried it again and it > worked, variable = variable + 1 is perfectly valid. It is not the normal ma

Re: [Tutor] Bug in python, or is it just 3am

2006-04-21 Thread Danny Yoo
On Fri, 21 Apr 2006, ryan luna wrote: > HA! ignore me, im stupid, XD i knew i should have waited untill morning > =P, No bug, the number = number was just point to the old number which > was one number lower, sorry. night =P Get some sleep. *grin*

[Tutor] Bug in python, or is it just 3am

2006-04-21 Thread ryan luna
HA! ignore me, im stupid, XD i knew i should have waited untill morning =P, No bug, the number = number was just point to the old number which was one number lower, sorry. night =P Oh i see someone replied -_- sorry lol ___ Tutor maillist - Tutor@py

[Tutor] Bug in python, or is it just 3am

2006-04-21 Thread ryan luna
Hey everyone, i believe i might have found a bug in python? im not sure, heres a screen shot. http://img151.imageshack.us/img151/4268/pythonbug8by.jpg When i type number + 1 and print it, It adds one, But when i use a number = number + 1 right after the value stays the same, Now i thought that numb