E&S CVS Commit: PEAK - Proof of concept for refactoring 'model.Enumeration'. It's *very* hacky

pje at eby-sarna.com pje at eby-sarna.com
Tue Feb 4 19:14:00 EST 2003

Module Name:	PEAK
Committed By:	pje
Date:		Wed Feb  5 00:13:07 UTC 2003

Modified Files:
	PEAK/src/peak/model: structural.py
	PEAK/src/peak/model/tests: __init__.py

Log Message:
Proof of concept for refactoring 'model.Enumeration'.  It's *very* hacky
and kludgy, and lacks a lot of the features I want, but it's a start.
It'll probably need to get redone in several areas, and it needs a lot more
tests added.  The big problem has to do with the fact that the class wants
to have instances of itself as attributes, but until the class exists, you
can't have instances of it.  Bleah.  So it needs a little rethinking of
some parts of the implementation.  The other thing that's annoying is that
'model.Immutable' objects have to have a dictionary!  Unfortunately I
don't see any straightforward way around this yet.  Ah well.

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

To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/model/structural.py
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/model/tests/__init__.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