[Python-bugs-list] [ python-Bugs-547953 ] inconsistency in "Using the cgi module"

noreply@sourceforge.net noreply@sourceforge.net
Wed, 24 Apr 2002 00:51:24 -0700


Bugs item #547953, was opened at 2002-04-24 15:51
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547953&group_id=5470

Category: Documentation
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: James Henstridge (jhenstridge)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: inconsistency in "Using the cgi module"

Initial Comment:
In the library reference, there is an inconsistency in
the "Using the cgi module" page.  It says to test
whether a list of values has been returned by using the
type() function.  The example immediately below then
uses isinstance() to check for a list.

It should probably be updated to tell people just to
use isinstance().  It might also be better to just use
"list" rather than "ListType" in the isinstance() call:
  if isinstance(value, list):
      ...


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

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