Visitar URL original
bpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used as decorator by zhangyangyu · Pull Request #231 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add news entry
  • Loading branch information
zhangyangyu committed Feb 22, 2017
commit fde883e1c783105267cf82f73b2014a75daef96a
8 changes: 8 additions & 0 deletions Doc/whatsnew/3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ The :const:`~unittest.mock.sentinel` attributes now preserve their identity
when they are :mod:`copied <copy>` or :mod:`pickled <pickle>`.
(Contributed by Serhiy Storchaka in :issue:`20804`.)

xmlrpc.server
-------------

:meth:`xmlrpc.server.SimpleXMLRPCServer.register_function()` and
:meth:`xmlrpc.server.CGIXMLRPCRequestHandler.register_function()` can now be
used as a decorator.
(Contributed by Xiang Zhang in :issue:`7769`.)


Optimizations
=============
Expand Down
3 changes: 3 additions & 0 deletions Misc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ Extension Modules
Library
-------

- bpo-7769: Method register_function() of xmlrpc.server.SimpleXMLRPCServer
and xmlrpc.server.CGIXMLRPCRequestHandler can now be used as a decorator.

- bpo-29532: Altering a kwarg dictionary passed to functools.partial()
no longer affects a partial object after creation.

Expand Down