Re: Ordering of urlencoded tuples incorrect

2009-01-16 Thread benlucas99
On Jan 16, 1:44 am, John Machin wrote: > On Jan 16, 11:59 am, benluca...@googlemail.com wrote: > > > I'm having problems with the ordering of the tuples produced by > > urllib.urlencode. Taking an example straight from the docs and so > > doing the following: > > What are "the docs" you are readi

Re: Ordering of urlencoded tuples incorrect

2009-01-15 Thread John Machin
On Jan 16, 11:59 am, benluca...@googlemail.com wrote: > I'm having problems with the ordering of the tuples produced by > urllib.urlencode.  Taking an example straight from the docs and so > doing the following: What are "the docs" you are reading that include such an example? The docs distributed

Re: Ordering of urlencoded tuples incorrect

2009-01-15 Thread MRAB
benluca...@googlemail.com wrote: I'm having problems with the ordering of the tuples produced by urllib.urlencode. Taking an example straight from the docs and so doing the following: import urllib ... params = urllib.urlencode({'spam': 1, 'eggs': 2, 'bacon': 0})