E&S CVS Commit: pylib - Added syntactic sugar for creating Template objects with keyword args as

pje at eby-sarna.com pje at eby-sarna.com
Fri Jun 8 08:01:00 EDT 2001


Module Name:	pylib
Committed By:	pje
Date:		Fri Jun  8 12:00:07 UTC 2001

Modified Files:
	pylib/TW: Components.py

Log Message:
Added syntactic sugar for creating Template objects with keyword args as
well as dictionaries, e.g. instead of:

Template('Spam',(),{'foo':bar,'baz':blam})

You can now say:

Template('Spam',foo=bar,baz=blam)

This is especially useful when you need to assemble specifications into
a larger specification which contains them.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/pylib/TW/Components.py.diff?r1=1.4&r2=1.5

To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pylib/TW/Components.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