E&S CVS Commit: PyProtocols - Added full Python argument support: varargs, keywords, defaults, and even

pje at eby-sarna.com pje at eby-sarna.com
Wed Nov 10 17:12:00 EST 2004

Module Name:	PyProtocols
Committed By:	pje
Date:		Wed Nov 10 22:11:35 UTC 2004

Modified Files:
	PyProtocols/src/dispatch: __init__.py functions.py interfaces.py
	PyProtocols/src/protocols/tests: test_dispatch.py test_parsing.py

Log Message:
Added full Python argument support: varargs, keywords, defaults, and even
nested tuples.  Removed 'dispatch.defmethod()' and 'dispatch.when()'; you
now create generics with '[dispatch.generic()]', or
'dispatch.GenericFunction(func)'.  In each case, the function defines
what the arguments will be named, what their defaults are, the name of
the generic function, its docstring, and so on. 'RAW_KWDARGS_ID' also no
longer exists, and 'GenericFunction.from_function()' was removed, since
it's now redundant to just using 'GenericFunction()'.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 PyProtocols/src/dispatch/__init__.py \
cvs rdiff -r1.7 -r1.8 PyProtocols/src/dispatch/functions.py
cvs rdiff -r1.17 -r1.18 PyProtocols/src/protocols/tests/test_dispatch.py
cvs rdiff -r1.12 -r1.13 PyProtocols/src/protocols/tests/test_parsing.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