Skip to content

Commit 0ad9069

Browse files
Deploy preview for PR 1211 🛫
1 parent dfed1db commit 0ad9069

File tree

585 files changed

+932
-843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

585 files changed

+932
-843
lines changed

pr-preview/pr-1211/_sources/installing/index.rst.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Installing Python Modules
77
*************************
88

9-
:Email: distutils-sig@python.org
10-
119
As a popular open source development project, Python has an active
1210
supporting community of contributors and users that also make their software
1311
available for other Python developers to use under open source license terms.

pr-preview/pr-1211/_sources/library/concurrent.futures.rst.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ And::
156156
print(f.result())
157157

158158
executor = ThreadPoolExecutor(max_workers=1)
159-
executor.submit(wait_on_future)
159+
future = executor.submit(wait_on_future)
160+
# Note: calling future.result() would also cause a deadlock because
161+
# the single worker thread is already waiting for wait_on_future().
160162

161163

162164
.. class:: ThreadPoolExecutor(max_workers=None, thread_name_prefix='', initializer=None, initargs=())

0 commit comments

Comments
 (0)