Issue 901480: urllib2.parse_http_list bugfix 735248 (original) (raw)
With unquoted elements, the current code forgets to throw away the already processed portion.
urllib2.parse_http_list('a,b,c') ['a', 'a,b', 'a,b,c']
The current code does not handle escaped characters.
len(urllib2.parse_http_list(r'"a","b","c"')) 3
This patch replaces parse_http_list and adds a helper function. I also added docstricts for these cases, and a few others (which the current code does get right, but which are not ...)