[issue11381] pretending the "not" operator is a function behaves surprisingly

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Georg. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11381] pretending the "not" operator is a function behaves surprisingly

2011-03-02 Thread Georg Brandl
Georg Brandl added the comment: I don't think this is wise, or necessary. I'm not sure why you would treat an operator as callable; the tutorial hopefully doesn't tell you such things. -- nosy: +georg.brandl resolution: -> rejected status: open -> closed

[issue11381] pretending the "not" operator is a function behaves surprisingly

2011-03-02 Thread Abafei
New submission from Abafei : I'm not sure if this is a bug per se, since I don't think pretending operators are callable is in the docs, but: pretending an operator (at least the "not" operator) is callable, like so: not(True) can be surprising: >>> (not 1) == 9 False >>> not(1) == 9 True N