[docs] [issue17674] All examples for concurrent.futures fail with "BrokenProcessPool"

Antoine Pitrou report at bugs.python.org
Tue Apr 9 15:25:24 CEST 2013


Antoine Pitrou added the comment:

This is not the example code. The example code uses a main() function which is guarded by a "if" block:

if __name__ == '__main__':
    main()

See http://docs.python.org/2/library/multiprocessing.html#windows for explanations.

Also, perhaps the concurrent.futures docs could point to that paragraph.

----------
assignee:  -> docs at python
components: +Documentation -Library (Lib), Windows
nosy: +docs at python, pitrou
type: crash -> behavior
versions: +Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17674>
_______________________________________


More information about the docs mailing list