[Python-Dev] [RFC] urlparse - parse query facility (original) (raw)

O.R.Senthil Kumaran orsenthil at users.sourceforge.net
Sat Jun 16 06:04:59 CEST 2007


I see no reason to incorporate the URL splitting into the function; the existing function signatures for cgi.parseqs and cgi.parseqsl are sufficient.

Thanks for the comments, Fred. I understand, that having the signatures of parse_qs and parse_qsl are sufficient in the urlparse module and invoking the same from cgi module will be correct.

The urlparse will cotain parse_qs and parse_qsl takes the query string (not url) and with optional arguments keep_blank_values and strict_parsing (same as cgi).

http://deadbeefbabe.org/paste/5154

It may be convenient to add methods to the urlparse.BaseResult class providing access to the parsed version of the query on the instance.

This is where, I spent a little bit time and I am unable to comeout conclusively as how it can be done.

Someone in the list, please help me.

Thanks, Senthil

-- O.R.Senthil Kumaran http://uthcode.sarovar.org



More information about the Python-Dev mailing list