E&S CVS Commit: PyProtocols - Add dispatching based on comparison to constants, such as 'x<=27' or 'y>9'.

pje at eby-sarna.com pje at eby-sarna.com
Sat Jul 3 19:30:00 EDT 2004


Module Name:	PyProtocols
Committed By:	pje
Date:		Sat Jul  3 23:29:09 UTC 2004

Modified Files:
	PyProtocols/src/protocols: dispatch.py
	PyProtocols/src/protocols/tests: test_dispatch.py

Log Message:
Add dispatching based on comparison to constants, such as 'x<=27' or 'y>9'.
This is a big improvement over the Chambers and Chen algorithm, in that
we can determine whether a given inequality implies another, reducing the
potential for having rules that seem clear to a human reader, but are
ambiguous to the computer.  (An example of this can be seen in the test
suite, where we label persons stereotypically according to age.  These
rules would be considered ambiguous under the Chambers and Chen approach,
even though it's obvious to a human reader what they mean.)


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PyProtocols/src/protocols/dispatch.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PyProtocols/src/protocols/tests/test_dispatch.py.diff?r1=1.2&r2=1.3

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PyProtocols/src/protocols/dispatch.py
cvs rdiff -r1.2 -r1.3 PyProtocols/src/protocols/tests/test_dispatch.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list