Dominic Mayers added the comment:

I am a bit ashamed that I missed that. Still, the intent in the current code, 
the name of the parameter, the examples, etc. is that we pass the handler 
class. This is more than its __init__ function and less than a generic factory  
method. An important difference, which could become important, is that with a 
factory the handler type could depend on the request.  As pointed out by Eric, 
passing the class was perhaps the intent in the early days. Now, perhaps many 
use it differently and pass a factory method, not a class, but it still appears 
as a hack that does not respect the intent. One could legitimately worry that 
this hack will not be supported in future versions, because it is not 
documented.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to