E&S CVS Commit: PyProtocols - Method combination refactoring. There is no longer a need for the old

pje at eby-sarna.com pje at eby-sarna.com
Mon Jan 10 02:04:00 EST 2005


Module Name:	PyProtocols
Committed By:	pje
Date:		Mon Jan 10 07:03:44 UTC 2005

Modified Files:
	PyProtocols/src/dispatch: combiners.py combiners.txt functions.py
	    strategy.py
	PyProtocols/src/protocols/tests: test_dispatch.py

Log Message:
Method combination refactoring.  There is no longer a need for the old
'chained_methods' combiner; just add a 'next_method' argument to the
front of your method's argument list if you want to be able to call the
next method.  (So, 'chained_methods' and 'next_method', among others,
have been removed.)  Added various utility routines to do advanced
method combination, e.g. 'method_chain' and 'method_list' as described in:

http://www.eby-sarna.com/pipermail/peak/2004-November/001909.html


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

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PyProtocols/src/dispatch/combiners.py \
    PyProtocols/src/dispatch/combiners.txt
cvs rdiff -r1.20 -r1.21 PyProtocols/src/dispatch/functions.py
cvs rdiff -r1.11 -r1.12 PyProtocols/src/dispatch/strategy.py
cvs rdiff -r1.27 -r1.28 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