Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'skip:\xa0 30': 0.05; 'facility': 0.07; 'subject:process': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'fruit': 0.16; 'problem!': 0.16; 'sorts': 0.16; '\xa0def': 0.16; 'wrote:': 0.21; 'received:209.85.213.46': 0.22; 'received:mail- yw0-f46.google.com': 0.22; 'header:In-Reply-To:1': 0.22; 'skip:m 30': 0.24; 'wed,': 0.24; 'defined': 0.27; 'message- id:@mail.gmail.com': 0.27; "who's": 0.27; 'class': 0.29; 'went': 0.30; 'received:209.85': 0.32; 'chris': 0.32; 'received:google.com': 0.32; 'thanks': 0.34; 'received:209': 0.35; 'there': 0.35; 'skip:_ 10': 0.35; 'things': 0.36; 'wonder': 0.36; 'so,': 0.37; 'rather': 0.38; 'someone': 0.38; 'to:addr:python- list': 0.39; 'to:addr:python.org': 0.40; 'mar': 0.61; 'better': 0.63; 'more': 0.63; '2012': 0.69; 'solved': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=yheUejQrMXrH10v0OghHRwAItN+65TAoa7dYC96jNKA=; b=ikc9Y4C6GgAHdjowa0zxXk6jKJQCmgSrUl6Nntj2MxXTtuohp/WZ9ScsG3Y/J2idMY 3HHvt/8E90+jdNWWiUjZWB7lDq2FlwlMhxIzV51T5xd5W9057WJ6ek+ZaUX6qeS4+ZnI C0Kl0B8xvutZj2Clh8/FlB30seIz5k2i0b5wXr4FZoR9803WQdtTw2btUlIsmX7zB8CH epevYX/Ow63omKGguUUgmMNn0usL4EjiIvTjk2LMsmdJ818E80LoIXOlyle9gdxfOYxi XNdiD7Hhzq4wSiG0X60bcfNY7bbNiHkxm2bNfweJtT7InPfOVhBdneAfQaWH/7JaKWZg PXRg== MIME-Version: 1.0 In-Reply-To: <634721E3-547A-49C4-96B5-503A87C7A6DD@catalogix.se> References: <634721E3-547A-49C4-96B5-503A87C7A6DD@catalogix.se> Date: Wed, 28 Mar 2012 07:57:17 +1100 Subject: Re: Slow termination of process From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332881839 news.xs4all.nl 6916 [2001:888:2000:d::a6]:44515 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22253 On Wed, Mar 28, 2012 at 1:52 AM, Roland Hedberg wrote= : > So, I went for the low-hanging fruit and defined my own TCPServer class > > class MyTCPServer(SocketServer.TCPServer): > =A0 =A0def __init__(self, server_address, RequestHandlerClass): > =A0 =A0 =A0 =A0self.allow_reuse_address =3D True > =A0 =A0 =A0 =A0SocketServer.TCPServer.__init__(self, server_address, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0RequestHandlerClass) > > and this solved my problem! > > So, thanks again Chris! Awesome! I wonder - and someone who's used the facility may know better than I - is there a reason not to make these sorts of things into keyword-only arguments? Or, more generally, is there a reason for them to be class variables rather than instance? Chris Angelico