Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Query.params should be an ordered multidict #3

Closed
masklinn opened this Issue · 2 comments

2 participants

@masklinn
  • URL parameters may be present multiple times in a given URL (hence urlparse.parse_qs returning a dict of lists of values)
  • Order between parameters is specified and may be important (hence the existence of urlparse.parse_qsl)

Werkzeug provides a data structure for this use case

@gruns
Owner

It shall be done.

Thanks for the suggestion and reference to Werkzeug's OrderedMultiDict.

@gruns gruns referenced this issue from a commit
Arthur Grunseid Test bolden URL components in markdown #3. 58021a3
@gruns
Owner

Query.params is a one dimensional ordered multivalue dictionary (https://github.com/gruns/orderedmultidict) in furl 0.3.

>>> from furl import furl
>>> f = furl('http://www.google.com/')
>>> f.args['repeated'] = ['yep', 'double yep']
>>> f.url
'http://www.google.com/?repeated=yep&repeated=double+yep'

Thanks again for bringing this to my attention.

@gruns gruns closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.