Message150321
The problem with `not in` is because it must evaluate the result. It's not just another operator like "==" and "!=".
Looks like we're suffering from premature optimization and now it would break a lot of code to make it good.
For my application, I created a different method to generate the object (Not as good as I wanted, but there's no option right now):
`MyClass().has(1)` instead of `1 in MyClass()`
So, if no one comes up with a better idea, this issue should be closed.
Thanks |
|
Date |
User |
Action |
Args |
2011-12-28 22:33:52 | JBernardo | set | recipients:
+ JBernardo, georg.brandl, rhettinger, pitrou, benjamin.peterson, alex |
2011-12-28 22:33:52 | JBernardo | set | messageid: <1325111632.22.0.67344477959.issue13667@psf.upfronthosting.co.za> |
2011-12-28 22:33:51 | JBernardo | link | issue13667 messages |
2011-12-28 22:33:51 | JBernardo | create | |
|