[Python-checkins] r67419 - in python/trunk/Doc: includes/mp_distributing.py library/multiprocessing.rst

Georg Brandl g.brandl at gmx.net
Fri Nov 28 23:42:24 CET 2008


jesse.noller schrieb:
> Author: jesse.noller
> Date: Fri Nov 28 19:22:54 2008
> New Revision: 67419
> 
> Log:
> mp docs - fix issues 4012,3518,4193
> 
> 
> Modified:
>    python/trunk/Doc/includes/mp_distributing.py
>    python/trunk/Doc/library/multiprocessing.rst

> @@ -1267,19 +1333,20 @@
>     >>> queue = Queue.Queue()
>     >>> class QueueManager(BaseManager): pass
>     ...
> -   >>> QueueManager.register('getQueue', callable=lambda:queue)
> +   >>> QueueManager.register('get_queue', callable=lambda:queue)
>     >>> m = QueueManager(address=('', 50000), authkey='abracadabra')
> -   >>> m.serveForever()
> +   >>> s = m.get_server()
> +   >>> s.serveForever()

Shouldn't that be serve_forever() too?

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-checkins mailing list