[Python-checkins] cpython: Issue #3518: Remove references to non-existent BaseManager.from_address()

richard.oudkerk python-checkins at python.org
Mon Jun 11 18:57:49 CEST 2012


http://hg.python.org/cpython/rev/c2910971eb86
changeset:   77411:c2910971eb86
user:        Richard Oudkerk <shibturn at gmail.com>
date:        Mon Jun 11 17:56:08 2012 +0100
summary:
  Issue #3518: Remove references to non-existent BaseManager.from_address()
method

files:
  Doc/library/multiprocessing.rst |  7 ++++---
  Lib/multiprocessing/managers.py |  4 ----
  Misc/NEWS                       |  3 +++
  3 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -1236,9 +1236,10 @@
       type of shared object.  This must be a string.
 
       *callable* is a callable used for creating objects for this type
-      identifier.  If a manager instance will be created using the
-      :meth:`from_address` classmethod or if the *create_method* argument is
-      ``False`` then this can be left as ``None``.
+      identifier.  If a manager instance will be connected to the
+      server using the :meth:`connect` method, or if the
+      *create_method* argument is ``False`` then this can be left as
+      ``None``.
 
       *proxytype* is a subclass of :class:`BaseProxy` which is used to create
       proxies for shared objects with this *typeid*.  If ``None`` then a proxy
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py
--- a/Lib/multiprocessing/managers.py
+++ b/Lib/multiprocessing/managers.py
@@ -455,10 +455,6 @@
         self._serializer = serializer
         self._Listener, self._Client = listener_client[serializer]
 
-    def __reduce__(self):
-        return type(self).from_address, \
-               (self._address, self._authkey, self._serializer)
-
     def get_server(self):
         '''
         Return server object with serve_forever() method and address attribute
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,9 @@
 Library
 -------
 
+- Issue #3518: Remove references to non-existent BaseManager.from_address()
+  method.
+
 - Issue #13857: Added textwrap.indent() function (initial patch by Ezra
   Berch)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list