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

Should the form dialect be recursive? #1

Open
jdp opened this issue Nov 19, 2014 · 0 comments
Open

Should the form dialect be recursive? #1

jdp opened this issue Nov 19, 2014 · 0 comments
Labels

Comments

@jdp
Copy link
Owner

jdp commented Nov 19, 2014

The default form encoding from urllib.urlencode doesn't support multi-dimensional values. That behavior can be taken from the multidimensional-urlencode package:

>>> import urllib
>>> from multidimensional_urlencode import urlencode
>>> e = urlencode({"a": {"b": {"c": [1, 2, 3], "d": "e"}}})
>>> urllib.unquote(e)
'a[b][d]=e&a[b][c]=1&a[b][c]=2&a[b][c]=3'

Should it be part of the default form dialect, or should there be a separate dialect for multidimensional values?

@jdp jdp added the question label Nov 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant