From: Sandro Tosi Date: Thu, 5 Jan 2012 18:48:56 +0000 (+0100) Subject: Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan... X-Git-Tag: v3.2.3rc1~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f57674713a82b42c56b87342ad96f6554f178c47;p=thirdparty%2FPython%2Fcpython.git 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 be2c6ff7af17..9462ef58922e 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -615,8 +615,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