[Zope3-checkins] CVS: Zope3/src/zope/schema - _bootstrapfields.py:1.21

Fred L. Drake, Jr. fred at zope.com
Wed Aug 13 18:29:37 EDT 2003


Garrett Smith writes:
 > +    # If a field has no assigned value, it will be set to missing_value.
 >      missing_value = None
 > +    _missing_value_marker = object()
...
 > -                 ):
 > +                 missing_value=_missing_value_marker):
...
 > +        if missing_value is not self._missing_value_marker:
 > +            self.missing_value = missing_value

Maybe I'm missing something fundamental, but... why not just just set
the default missing_value=None, and simply set it on the instance
unconditionally?


  -Fred

-- 
Fred L. Drake, Jr.  <fred at zope.com>
PythonLabs at Zope Corporation



More information about the Zope3-Checkins mailing list