[docs] [issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

Dominic Mayers report at bugs.python.org
Tue Apr 4 17:43:17 EDT 2017


Dominic Mayers added the comment:

I simplified the patch. Using a class as a factory function is the simplest case, so I took advantage of this. I also give one way to pass extra parameters to the handler in the factory function, because it's the main reason why we cannot always use a class.

----------
Added file: http://bugs.python.org/file46774/Issue29947_for_discussion_02.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29947>
_______________________________________


More information about the docs mailing list