[PEAK] events.sources.Not
Bob Ippolito
bob at redivi.com
Tue Feb 24 20:29:59 EST 2004
On Feb 24, 2004, at 8:24 PM, Phillip J. Eby wrote:
> At 06:27 PM 2/23/04 -0800, John Landahl wrote:
>> peak/events/sources.py should probably have Not in its __all__ list,
>> otherwise one can't use 'events.Not'. A "from peak.events.sources
>> import Not" works, but this is probably not the intended usage.
>
> Nope. Use '~aCondition' to obtain its opposite. 'Not' is not a
> public class, and I probably should've named it '_Not' to make that
> clear.
>
> Note that '~~x is x', but 'Not(Not(x)) is not x'. That's why you
> shouldn't be using 'Not'.
That sure is isn't not confusing to not not read :)
-bob
More information about the PEAK
mailing list