[Subversion] / PEAK-Rules / Criteria.txt  

Diff of /PEAK-Rules/Criteria.txt

Parent Directory | Revision Log

version 2462, Mon Dec 31 02:03:34 2007 UTC version 2465, Mon Dec 31 14:58:42 2007 UTC
Line 401 
Line 401 
     ... ])      ... ])
     True      True
   
       >>> intersect(int_or_str, Conjunction([long, float]))
       Disjunction([Conjunction([<type 'int'>, <type 'long'>, <type 'float'>]),
                    Conjunction([<type 'str'>, <type 'long'>, <type 'float'>])])
   
       >>> intersect(Conjunction([int, str]), long_or_float)
       Disjunction([Conjunction([<type 'int'>, <type 'str'>, <type 'long'>]),
                    Conjunction([<type 'int'>, <type 'str'>, <type 'float'>])])
   
 As you can see, this is the heart of the process that allows expressions like  As you can see, this is the heart of the process that allows expressions like
 ``(A or B) and (C or D)`` to be transformed into their disjunctive normal  ``(A or B) and (C or D)`` to be transformed into their disjunctive normal
 form (i.e. ``(A and C) or (A and D) or (B and C) or (B and D)``).  form (i.e. ``(A and C) or (A and D) or (B and C) or (B and D)``).


Generate output suitable for use with a patch program
Legend:
Removed from v.2462  
changed lines
  Added in v.2465

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help