Mart Sõmermaa <mrts.pydev <at> gmail.com> writes: > > On Mon, Apr 13, 2009 at 12:56 AM, Antoine Pitrou <solipsis <at> pitrou.net> wrote: > Mart Sõmermaa <mrts.pydev <at> gmail.com> writes: > > > > Proposal: add add_query_params() for appending query parameters to an URL to > urllib.parse and urlparse. > Is there anything to /remove/ a query parameter? > > I'd say this is outside the scope of add_query_params(). Given the name of the proposed function, sure. But it sounds a bit weird to have a function dedicated to adding parameters and nothing to remove them. You could e.g. rename the function to update_query_params() and decide that every parameter whose specified value is None must atcually be removed from the URL. Regards Antoine.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4