[issue18032] set methods should specify whether they consume iterators "lazily"

2013-05-22 Thread Abafei
New submission from Abafei: It says here (http://docs.python.org/2/library/stdtypes.html#set-types-set-frozenset) that some of the set methods take iterables as a parameter. Usually, the expected behavior is for a iterator consumer to consume only as much data as it needs. For example, for

[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) ==