Slow termination of process

Chris Angelico rosuav at gmail.com
Tue Mar 27 16:57:17 EDT 2012


On Wed, Mar 28, 2012 at 1:52 AM, Roland Hedberg <roland at 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



More information about the Python-list mailing list