code doesn't work: question

Ruslan Spivak alienoid at
Tue Sep 3 06:03:05 EDT 2002

Hello python-list user,

I want somebody to explain me why next code doesn't work:

var = 5

if (tmp = var) == 5:         # this is the error line
   print "ok"
   print "error"

Best regards,
 Ruslan                          mailto:alienoid at

More information about the Python-list mailing list