Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

futures.ProcessPoolExecutor hangs #55370

Closed
pclinch mannequin opened this issue Feb 9, 2011 · 3 comments
Closed

futures.ProcessPoolExecutor hangs #55370

pclinch mannequin opened this issue Feb 9, 2011 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@pclinch
Copy link
Mannequin

pclinch mannequin commented Feb 9, 2011

BPO 11161
Nosy @brianquinlan

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/brianquinlan'
closed_at = <Date 2013-10-25.17:53:53.110>
created_at = <Date 2011-02-09.18:03:18.523>
labels = ['type-bug', 'docs']
title = 'futures.ProcessPoolExecutor hangs'
updated_at = <Date 2013-10-26.19:12:18.410>
user = 'https://bugs.python.org/pclinch'

bugs.python.org fields:

activity = <Date 2013-10-26.19:12:18.410>
actor = 'berker.peksag'
assignee = 'bquinlan'
closed = True
closed_date = <Date 2013-10-25.17:53:53.110>
closer = 'bquinlan'
components = ['Documentation']
creation = <Date 2011-02-09.18:03:18.523>
creator = 'pclinch'
dependencies = []
files = []
hgrepos = []
issue_num = 11161
keywords = []
message_count = 3.0
messages = ['128228', '128241', '201266']
nosy_count = 3.0
nosy_names = ['bquinlan', 'pclinch', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue11161'
versions = ['Python 3.4']

@pclinch
Copy link
Mannequin Author

pclinch mannequin commented Feb 9, 2011

The example 16.4.3.1. ProcessPoolExecutor Example hangs in IDLE silently, and hangs the interactive python shell with AttributeError: 'module' object has no attribute 'is_prime'.

is_prime(9) was tested before running.

Platform is windows XP.

c:\Python32\python.exe -m test.test_concurrent_futures

passes all tests.

@pclinch pclinch mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Feb 9, 2011
@brianquinlan
Copy link
Contributor

ProcessPoolExecutor is not expected to work with any interactive shell on Windows because it uses the multiprocessing module behind the scenes, which has that limitation.

I'm reclassifying this as a documentation bug since either a reference to http://docs.python.org/dev/library/multiprocessing.html#programming-guidelines should appear in the futures docs or (better) the content should be rewritten specifically for ProcessPoolExecutor.

@brianquinlan brianquinlan added docs Documentation in the Doc dir and removed topic-IDLE labels Feb 9, 2011
@python-dev
Copy link
Mannequin

python-dev mannequin commented Oct 25, 2013

New changeset 44b69e95d276 by bquinlan in branch 'default':
Issue bpo-11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell.
http://hg.python.org/cpython/rev/44b69e95d276

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant