Message132349
> not x == 2 can be theoretically optimized to x != 2, ...
I don't think it can:
>>> class X:
... def __eq__(self, other):
... return True
... def __ne__(self, other):
... return True
...
>>> x = X()
>>>
>>> not x == 2
False
>>> x != 2
True
>>> |
|
Date |
User |
Action |
Args |
2011-03-27 16:26:12 | daniel.urban | set | recipients:
+ daniel.urban, brett.cannon, georg.brandl, rhettinger, terry.reedy, mark.dickinson, ncoghlan, pitrou, nadeem.vawda, benjamin.peterson, alex, Trundle, dmalcolm, santoso.wijaya, eltoder |
2011-03-27 16:26:12 | daniel.urban | set | messageid: <1301243172.07.0.0253604121916.issue11549@psf.upfronthosting.co.za> |
2011-03-27 16:26:11 | daniel.urban | link | issue11549 messages |
2011-03-27 16:26:11 | daniel.urban | create | |
|