Im using the the cgi function to parse the "name=test&name=test2&blah=foo" query string and I get {'blah': ['foo'], 'name': ['test', 'test2']} My question is how do I know how long the query string is going to be? For instance a parsed query string could look like this: {'yo': ['fool'], 'name': ['test', 'test2', 'test3', 'test4'......etc]}