[Zope] testing for "REQUEST is not None"

Willem Broekema willem@pastelhorn.com
Thu, 07 Nov 2002 01:28:29 -0100


If a method in a Zope product has REQUEST as optional parameter:

   def something(self, REQUEST=None):
     ...

why is the REQUEST always compared with None:

   if REQUEST is not None:
     ..

instead of just:

   if REQUEST:
     ..

?


- Willem