[Python-ideas] Support data: URLs in urllib

Senthil Kumaran senthil at uthcode.com
Thu Nov 8 07:11:18 CET 2012

On Wed, Nov 7, 2012 at 9:24 AM, Mathias Panzenböck
<grosser.meister.morti at gmx.net> wrote:
> Sorry, I don't quite understand.
> Do you mean the parse_data_url function should be removed and put into
> DataResponse (or DataHandler)?
>> and expected results be returned should be considered?
> What expected results? And in what way should they be considered? Considered
> for what?

I meant, urlopen("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUA

should work out of box, wherein the DataHandler example that is the
documentation is made available in request.py and added to
OpenerDirector by default. I find it hard to gauge the utility, but
documentation is ofcourse a +1.


More information about the Python-ideas mailing list