Message155329
In operator acts like it doesn't return a boolean value
>>> 3 in [1,2,3] == True
False
and even
>>> 3 in [1,2,3] == 3 in [1,2,3]
False
but somehow if you add ( ) it starts working
>>> (3 in [1,2,3]) == True
True
Tested on OSX 10.7 Python 2.7.1 |
|
Date |
User |
Action |
Args |
2012-03-10 18:01:02 | Damjan.Košir | set | recipients:
+ Damjan.Košir |
2012-03-10 18:01:02 | Damjan.Košir | set | messageid: <1331402462.68.0.808379005089.issue14247@psf.upfronthosting.co.za> |
2012-03-10 18:01:02 | Damjan.Košir | link | issue14247 messages |
2012-03-10 18:01:01 | Damjan.Košir | create | |
|