This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gdr@garethrees.org
Recipients drueter@assyst.com, gdr@garethrees.org
Date 2015-06-17.08:53:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434531218.47.0.128599472889.issue24460@psf.upfronthosting.co.za>
In-reply-to
Content
If you read the documentation for urllib.parse.urlencode [1], you'll
see that it says:

    The value element in itself can be a sequence and in that case, if
    the optional parameter doseq is evaluates to True, individual
    key=value pairs separated by '&' are generated for each element of
    the value sequence for the key.

So you need to write:

    >>> urllib.parse.urlencode(thisDict, doseq=True)
    'SomeVar3=ghi&SomeVar1=abc&SomeVar2=def'

[1]: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlencode
History
Date User Action Args
2015-06-17 08:53:38gdr@garethrees.orgsetrecipients: + gdr@garethrees.org, drueter@assyst.com
2015-06-17 08:53:38gdr@garethrees.orgsetmessageid: <1434531218.47.0.128599472889.issue24460@psf.upfronthosting.co.za>
2015-06-17 08:53:38gdr@garethrees.orglinkissue24460 messages
2015-06-17 08:53:37gdr@garethrees.orgcreate