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 <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