[Python-bugs-list] [ python-Bugs-444913 ] cgi.FieldStorage doesn't have __nonzero_

noreply@sourceforge.net noreply@sourceforge.net
Thu, 26 Jul 2001 13:21:32 -0700


Bugs item #444913, was opened at 2001-07-26 13:21
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444913&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Ian Bicking (ianbicking)
Assigned to: Nobody/Anonymous (nobody)
Summary: cgi.FieldStorage doesn't have __nonzero_

Initial Comment:
In some cases cgi.FieldStorage raises an exception on
__len__, which means that if you test for truth it will
raise an exception (very confusing!).  It should just
implement 
  def __nonzero__(self): return 1
or something.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=444913&group_id=5470