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


Groups > comp.lang.python > #22253

Re: Slow termination of process

References <F2060B24-D02C-4FDE-A83E-8447AD8E563A@catalogix.se> <CAPTjJmrnEgG5OvOWpFcZwrUOK39qrpvd1J5_9dMMFK+88QU1-A@mail.gmail.com> <634721E3-547A-49C4-96B5-503A87C7A6DD@catalogix.se>
Date 2012-03-28 07:57 +1100
Subject Re: Slow termination of process
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1048.1332881839.3037.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Mar 28, 2012 at 1:52 AM, Roland Hedberg <roland@catalogix.se> wrote:
> So, I went for the low-hanging fruit and defined my own TCPServer class
>
> class MyTCPServer(SocketServer.TCPServer):
>    def __init__(self, server_address, RequestHandlerClass):
>        self.allow_reuse_address = True
>        SocketServer.TCPServer.__init__(self, server_address,
>                                        RequestHandlerClass)
>
> 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

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


Thread

Re: Slow termination of process Chris Angelico <rosuav@gmail.com> - 2012-03-28 07:57 +1100

csiph-web