Issue #12042: a queue is only used to retrive results; preliminary patch by Jordan Stadler

This commit is contained in:
Sandro Tosi 2012-01-05 19:48:56 +01:00
parent ba232dfc83
commit f57674713a
1 changed files with 2 additions and 2 deletions

View File

@ -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