[Patches] [ python-Patches-993062 ] cgi.parse_qs: make an empty string give {}, like in 2.3.

SourceForge.net noreply at sourceforge.net
Wed Jul 21 05:01:26 CEST 2004


Patches item #993062, was opened at 2004-07-17 16:06
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=993062&group_id=5470

Category: Library (Lib)
Group: Python 2.4
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Richie Hindle (richiehindle)
Assigned to: Brett Cannon (bcannon)
Summary: cgi.parse_qs: make an empty string give {}, like in 2.3.

Initial Comment:
Prior to 2.4, cgi.parse_qs("", keep_blank_values=True) 
returned {}.  It now returns {'': ['']}.  This patch 
restores the old behaviour without breaking the edit 
that introduced it, namely that parse_qs("pog", 
keep_blank_values=True) should return {'pog': ['']}.


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

>Comment By: Brett Cannon (bcannon)
Date: 2004-07-20 20:01

Message:
Logged In: YES 
user_id=357491

Neil fixed this so as to return an empty dict to deal with bug #990307; 
essentially this is a dup report.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2004-07-18 18:24

Message:
Logged In: YES 
user_id=33168

Brett, you changed the keep_blank_values, do you agree with
this change?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=993062&group_id=5470


More information about the Patches mailing list