Antoine Pitrou wrote: > 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. > > Weird or not, is there actually a *need* to remove query parameters? Michael > 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. > > > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog
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