[Python-Dev] Should urlencode() sort the query parameters (if they come from a dict)?

Daniel Holth dholth at gmail.com
Fri Aug 17 21:41:36 CEST 2012


Only if it is not an OrderedDict

>         query = sorted(query.items())
>
> This would not prevent breakage of unit tests, but it would make a
> much simpler fix possible: simply sort the parameters in the URL.


More information about the Python-Dev mailing list