print problem

2008-06-16 Thread pirata
I was trying to print a dot on console every second to indicates running process, so I wrote, for example: for i in xrange(10): print ".", time.sleep(1) Idealy, a dot will be printed out each second. But there is nothing print out until after 10 seconds, all 10 dots come out together. I

Does '!=' equivelent to 'is not'

2008-06-16 Thread pirata
I'm a bit confusing about whether "is not" equivelent to "!=" if a != b: ... if a is not b: ... What's the difference between "is not" and "!=" or they are the same thing? -- http://mail.python.org/mailman/listinfo/python-list