homepage

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 kiilerix
Recipients Ramchandra Apte, davide.rizzo, ezio.melotti, kiilerix, krisys, maker, orsenthil, sandro.tosi
Date 2012年01月12日.15:35:57
SpamBayes Score 7.889298e-05
Marked as misclassified No
Message-id <1326382557.86.0.37686987905.issue13359@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the url sent by urllib2 must not contain spaces. In my opinion the only way to handle that correctly is to not pass urls with spaces to urlopen. Escaping the urls is not a good solution - even if the API was to be designed from scratch. It would be better to raise an exception if it is passed an invalid url.
Note for example that '/' and the %-encoding of '/' are different, and it must thus be possible to pass an url containing both to urlopen. That is not possible if it automically escapes.
History
Date User Action Args
2012年01月12日 15:35:58kiilerixsetrecipients: + kiilerix, orsenthil, ezio.melotti, sandro.tosi, maker, davide.rizzo, Ramchandra Apte, krisys
2012年01月12日 15:35:57kiilerixsetmessageid: <1326382557.86.0.37686987905.issue13359@psf.upfronthosting.co.za>
2012年01月12日 15:35:57kiilerixlinkissue13359 messages
2012年01月12日 15:35:57kiilerixcreate

AltStyle によって変換されたページ (->オリジナル) /