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 Joshua.Johnston
Recipients Claudiu.Popa, Joshua.Johnston, ezio.melotti, orsenthil, r.david.murray
Date 2014-02-07.20:25:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391804727.25.0.133015518737.issue18857@psf.upfronthosting.co.za>
In-reply-to
Content
While the RFC makes no mention of empty values either way, it has become standard practice to either omit the key-value completely or pass a key (optional = sign) by itself in these situations so I would consider that as standard behavior.

While I stand by my position that the function is broken in regards to None, I do not have the clout to make this change without support from the community so I will leave it at that.

>>>Whether or not adding this feature would require a new keyword argument to urlencode is a judgment call.
>>>It might be an acceptable change in a feature release.
I do believe that it should be changed in a future release and a new keyword argument would suffice except for when the abstraction level is high enough to shield you from being able to specify this new argument.

>>I could imagine some programmer building an internal web service that 
>>turns the string 'None' back into a Python None value.  The fact that it 
>>would have to be an internal thing would mean we'd never hear about 
>>it...until we broke it :)
I was talking to someone about the same thing during lunch today. This whole bug report came about because I was finding 'None' string values in our app engine datastore because of optional parameters with None values being encoded as 'None'.
History
Date User Action Args
2014-02-07 20:25:27Joshua.Johnstonsetrecipients: + Joshua.Johnston, orsenthil, ezio.melotti, r.david.murray, Claudiu.Popa
2014-02-07 20:25:27Joshua.Johnstonsetmessageid: <1391804727.25.0.133015518737.issue18857@psf.upfronthosting.co.za>
2014-02-07 20:25:27Joshua.Johnstonlinkissue18857 messages
2014-02-07 20:25:26Joshua.Johnstoncreate