[ZPT] why is default false?

Fred L. Drake, Jr. fdrake@acm.org
Fri, 24 May 2002 10:41:41 -0400


Casey Duncan writes:
 > Would it be insane for default to act just like the sample content string 
 > would?

Yes.  The truth value of an expression like "a and default or nothing"
should *not* be sensitive to the value of the default.  It might be
defined and '', or it might not be defined.  Then we're back to the
original problem, depending on the default.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation