From: Sandro Tosi Date: Thu, 5 Jan 2012 18:48:30 +0000 (+0100) Subject: Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan... X-Git-Tag: v2.7.3rc1~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24f207e99e8ec2213fffde44d6d637b1a9770944;p=python Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan Stadler --- diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index ccc97b8fc8..5cca82c646 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -611,8 +611,8 @@ multiple of 4. result = queue.get() print 'Factorial', N, '=', result -A :class:`Queue` is used to communicate the input parameter *N* and -the result. The :class:`Queue` object is stored in a global variable. +A :class:`Queue` is used to communicate the result of the factorial. +The :class:`Queue` object is stored in a global variable. The child process will use the value of the variable when the child was created; because it's a :class:`Queue`, parent and child can use the object to communicate. (If the parent were to change the value of