[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

Raymond Hettinger report at bugs.python.org
Mon Feb 27 23:46:46 EST 2017


Raymond Hettinger added the comment:

+1 for the decorator idea.  It feels very natural.

A little off topic, I do not like the with-statement example that we currently have in the docs.  I think it is bad design to put some much code inside with-block.  In the micro-webframeworks, we register functions separately from launching the server.  The same practice should apply here as well.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list