Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'instance.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '.........': 0.16; 'cleaner': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'code.': 0.18; '3.0': 0.19; 'possible,': 0.19; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'wonder': 0.29; 'lines': 0.31; 'class': 0.32; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'subject:data': 0.36; 'done': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'ian': 0.60; 'worry': 0.60; 'director': 0.61; 'first': 0.61; 'received:109': 0.72; 'special': 0.74; '3.4': 0.84; 'opener': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Robin Becker Subject: Re: data: protocol Date: Thu, 08 May 2014 17:52:10 +0100 References: <536afe13$0$11109$c3e8da3@news.astraweb.com> <536B5D99.1020509@chamonix.reportlab.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 109.174.168.73 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399567943 news.xs4all.nl 2960 [2001:888:2000:d::a6]:60226 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71114 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