E&S CVS Commit: pylib - More interface docs. Added tests for Singletons. Singletons now work -

pje at eby-sarna.com pje at eby-sarna.com
Tue May 29 20:27:00 EDT 2001


Module Name:	pylib
Committed By:	pje
Date:		Wed May 30 00:26:01 UTC 2001

Modified Files:
	pylib/TW: Aspects.py
	pylib/TW/tests: Aspects.py

Log Message:
More interface docs.  Added tests for Singletons.  Singletons now work -
not perfectly, however.  It's okay to inherit from singleton classes or
from a singleton which inherits from a singleton class.  But trying to
derive singletons from singletons from singletons can cause a woven-in
aspect to be ignored in the higher parts of the inheritance tree (because
the vertical bases can't be located, so they're considered horizontal
bases and not combined with the added-in aspects.  The only time this is
an issue is if you are using a generated component as an aspect, which is
probably not a good thing to do in general.  But the limitation with
respect to singletons should be documented.  Unfortunately, it's rather
subtle to describe.


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

To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 pylib/TW/Aspects.py
cvs rdiff -r1.5 -r1.6 pylib/TW/tests/Aspects.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