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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Apr 2002 13:45:59 -0700


Bugs item #547953, was opened at 2002-04-24 03: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: Closed
>Resolution: Fixed
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):
      ...


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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-04-26 16:45

Message:
Logged In: YES 
user_id=3066

Fixed in Doc/lib/libcgi.tex revisions 1.36, 1.35.4.1, and
1.28.6.1.

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

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