[Zope3-checkins] CVS: Zope3/src/zope/schema
-_bootstrapfields.py:1.21
Fred L. Drake, Jr.
fred at zope.com
Thu Aug 14 10:38:37 EDT 2003
Garrett Smith writes:
> Fields define missing_value as class attributes and I don't want to
> overwrite those values unless missing_value is specified in the
> initializer. I'm not using None because that's a valid missing value.
Ah, you expect other classes to define missing_value; that makes
sense. I'll add a comment about that. I think it also makes sense
for the marker to be a public global rather than a class attribute.
That would avoid the pathological case where some adds their own value
for self._missing_value_marker in a subclass.
-Fred
--
Fred L. Drake, Jr. <fred at zope.com>
PythonLabs at Zope Corporation
More information about the Zope3-Checkins
mailing list