E&S CVS Commit: PEAK - Standardized call signature for metaclass.__new__ methods as
pje at eby-sarna.com
pje at eby-sarna.com
Sun Nov 3 20:36:00 EST 2002
Module Name: PEAK
Committed By: pje
Date: Mon Nov 4 01:35:11 UTC 2002
Modified Files:
PEAK/src/peak/binding: meta.py
PEAK/src/peak/naming: names.py
PEAK/src/peak/util: Struct.py
Log Message:
Standardized call signature for metaclass.__new__ methods as
__new__(meta, name, bases, ...) to make it easier to find metaclass __new__
methods (as opposed to class __new__ methods). Eliminated a metaclass
__new__ that wasn't needed (replaced with an __init__). There are now only
two PEAK metaclasses that use __new__: structType and Singleton. Neither
is particularly likely to need mixing with Persistent.__class__, so we
should be able to steer clear of any danger that might come about from
Persistent.__class__ being somewhere other than at the end of the __bases__
list.
Whew! I think that finally concludes the integration of Persistent into
the model.Element base class; so now it should be possible to create
Element subclasses and store the instances in Racks.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/binding/meta.py.diff?r1=1.21&r2=1.22
http://cvs.eby-sarna.com/PEAK/src/peak/naming/names.py.diff?r1=1.23&r2=1.24
http://cvs.eby-sarna.com/PEAK/src/peak/util/Struct.py.diff?r1=1.7&r2=1.8
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 PEAK/src/peak/binding/meta.py
cvs rdiff -r1.23 -r1.24 PEAK/src/peak/naming/names.py
cvs rdiff -r1.7 -r1.8 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