E&S CVS Commit: PyProtocols - Add first draft of a multiple dispatch generic function framework, that

pje at eby-sarna.com pje at eby-sarna.com
Fri Jul 2 01:23:00 EDT 2004


Module Name:	PyProtocols
Committed By:	pje
Date:		Fri Jul  2 05:22:42 UTC 2004

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

Log Message:
Add first draft of a multiple dispatch generic function framework, that
should be extensible to predicate dispatch and CLOS-style method combining
features.  Basically, it's a much smarter version of 'peak.util.dispatch',
that includes incremental indexing and lazy dispatch tree building.  Unlike
'peak.util.dispatch', it only tests conditions that make a difference to
the result of the dispatching, and it also supports pluggable rules for
sorting/combining applicable methods.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PyProtocols/src/protocols/dispatch.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/PyProtocols/src/protocols/tests/__init__.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/PyProtocols/src/protocols/tests/test_dispatch.py?rev=1.1&content-type=text/vnd.viewcvs-markup

To generate a diff of this commit:
cvs rdiff -r0 -r1.1 PyProtocols/src/protocols/dispatch.py
cvs rdiff -r1.13 -r1.14 PyProtocols/src/protocols/tests/__init__.py
cvs rdiff -r0 -r1.1 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