|
||
|
Hi all, I am new to the language and I'd like to solicit your opinion on the following behavior: ~$ python Python 2.5.2 (r252:60911, Apr 8 2008, 21:49:41) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> a = 3; b = 2 >>> c = 1+1 >>> a,b,c (1, 2, 2) >>> if c == (a or b): print 'success' ... >>> if c == (b or a): print 'success' ... success >>> Thanks, z |
||
|
|
