Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71114

Re: data: protocol

From Robin Becker <robin@reportlab.com>
Subject Re: data: protocol
Date 2014-05-08 17:52 +0100
References <mailman.9731.1399459361.18130.python-list@python.org> <536afe13$0$11109$c3e8da3@news.astraweb.com> <536B5D99.1020509@chamonix.reportlab.co.uk> <CALwzidnL6ct6-P=cTWTkCeEmGTb+UKRn+13_rU+DPydAupuvgg@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.9788.1399567943.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 08/05/2014 16:07, Ian Kelly wrote:
........
> The DataHandler class in 3.4 is all of 14 lines of code. My first

which makes me wonder why the old URLopener is still there and why all this 
wasn't done before 3.0 appeared.

> instinct would be to backport that and add it to some OpenerDirector
> instance.
>
Using a director would be possible, but it's not much cleaner than special 
casing the function and I don't have to worry about which opener to use; I use 
the one provided by the user
-- 
Robin Becker

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

data: protocol Robin Becker <robin@reportlab.com> - 2014-05-07 11:42 +0100
  Re: data: protocol Steven D'Aprano <steve@pearwood.info> - 2014-05-08 03:46 +0000
    Re: data: protocol Robin Becker <robin@reportlab.com> - 2014-05-08 11:34 +0100
    Re: data: protocol Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-08 09:07 -0600
    Re: data: protocol Robin Becker <robin@reportlab.com> - 2014-05-08 17:52 +0100

csiph-web