Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query.params should be an ordered multidict #3

Closed
masklinn opened this issue Dec 13, 2011 · 2 comments
Closed

Query.params should be an ordered multidict #3

masklinn opened this issue Dec 13, 2011 · 2 comments

Comments

@masklinn
Copy link

  • 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
Copy link
Owner

gruns commented Dec 14, 2011

It shall be done.

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

gruns pushed a commit that referenced this issue Dec 16, 2011
@gruns
Copy link
Owner

gruns commented Feb 6, 2012

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 as completed Feb 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants