E&S CVS Commit: PEAK - Added binding.New() and binding.Copy(), which are handy for creating

pje at eby-sarna.com pje at eby-sarna.com
Sun Jun 30 18:25:01 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sun Jun 30 22:24:48 UTC 2002

Modified Files:
	PEAK/src/peak/binding: once.py
	PEAK/src/peak/binding/tests: __init__.py
	PEAK/src/peak/model: api.py

Log Message:
Added binding.New() and binding.Copy(), which are handy for creating
auto-initializing mutable instance variables, e.g.::

    class MyThing(binding.Component):

        aDict = binding.New(dict)

        aList = binding.Copy( [1,2,'buckle your shoe'] )

Also did a little minor cleanup in peak.model.api.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/binding/once.py.diff?r1=1.8&r2=1.9
http://cvs.eby-sarna.com/PEAK/src/peak/binding/tests/__init__.py.diff?r1=1.7&r2=1.8
http://cvs.eby-sarna.com/PEAK/src/peak/model/api.py.diff?r1=1.26&r2=1.27

To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 PEAK/src/peak/binding/once.py
cvs rdiff -r1.7 -r1.8 PEAK/src/peak/binding/tests/__init__.py
cvs rdiff -r1.26 -r1.27 PEAK/src/peak/model/api.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