This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cgi.parse_qs: make an empty string give {}, like in 2.3.
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, nnorwitz, richiehindle
Priority: normal Keywords: patch

Created on 2004-07-17 23:06 by richiehindle, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cgi.diff richiehindle, 2004-07-17 23:06 Patch for Lib/cgi.py
Messages (3)
msg46384 - (view) Author: Richie Hindle (richiehindle) Date: 2004-07-17 23:06
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': ['']}.
msg46385 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2004-07-19 01:24
Logged In: YES 
user_id=33168

Brett, you changed the keep_blank_values, do you agree with
this change?
msg46386 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-07-21 03:01
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.
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40588
2004-07-17 23:06:58richiehindlecreate