E&S CVS Commit: PEAK - Added new 'struct' type to serve as a basis for compact, immutable object
pje at eby-sarna.com
pje at eby-sarna.com
Wed Jul 3 06:55:01 EDT 2002
Module Name: PEAK
Committed By: pje
Date: Wed Jul 3 10:54:39 UTC 2002
Added Files:
PEAK/src/peak/util: Struct.py
Log Message:
Added new 'struct' type to serve as a basis for compact, immutable object
classes. Structs are tuples on the inside, dictionaries on the outside,
plus whatever properties and methods you care to add. They also offer a
wide variety of constructor options, including the string parsing of your
choice, and the ability to define new constructors of your own devising.
This class will end up being the base class for many PEAK objects,
including naming.ParsedURL, storage.SQLRecord, storage.LDAPRecord, and
so on.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/util/Struct.py?rev=1.1&content-type=text/vnd.viewcvs-markup
To generate a diff of this commit:
cvs rdiff -r0 -r1.1 PEAK/src/peak/util/Struct.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