[PEAK] events.sources.Not

Phillip J. Eby pje at telecommunity.com
Tue Feb 24 20:24:05 EST 2004


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'.




More information about the PEAK mailing list