Skip to content

bpo-34687: asynico uses ProactorEventLoop by default#9538

Merged
1st1 merged 4 commits intopython:masterfrom
vstinner:proactor_default
Sep 25, 2018
Merged

bpo-34687: asynico uses ProactorEventLoop by default#9538
1st1 merged 4 commits intopython:masterfrom
vstinner:proactor_default

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 24, 2018

On Windows, asyncio now uses ProactorEventLoop, instead of
SelectorEventLoop, by default.

https://bugs.python.org/issue34687

On Windows, asyncio now uses ProactorEventLoop, instead of
SelectorEventLoop.
Comment thread Doc/library/asyncio-platforms.rst Outdated
Windows
=======

The default event loop on Windows is :class:`ProactorEventLoop`.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just put one .. versionchanged:: 3.8 here, there's no point in covering this info twice in this section.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread Doc/library/asyncio-platforms.rst Outdated
Comment thread Doc/library/asyncio-platforms.rst Outdated
asyncio.run(your_code())
The default event loop :class:`ProactorEventLoop` supports subprocesses.

On Windows, :class:`SelectorEventLoop` does not support subprocesses.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows, the default event loop :class:ProactorEventLoop supports subprocesses, whereas :class:SelectorEventLoop does not.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@bedevere-bot
Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@vstinner
Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link
Copy Markdown

Thanks for making the requested changes!

@1st1: please review the changes made to this pull request.

is configured to use the default policy automatically.


.. class:: WindowsSelectorEventLoopPolicy
Copy link
Copy Markdown
Member

@1st1 1st1 Sep 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, one more change... 5 lines above this line:

    The default asyncio policy.  Uses :class:`SelectorEventLoop`
    on both Unix and Windows platforms.

    There is no need to install the default policy manually. asyncio
    is configured to use the default policy automatically.

please change it to

    The default asyncio policy.  Uses :class:`SelectorEventLoop`
    on Unix and :class:`ProactorEventLoop` on Windows.

    There is no need to install the default policy manually. asyncio
    is configured to use the default policy automatically.

    .. versionchanged:: 3.8
       :class:`ProactorEventLoop` is now default on Windows.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^^ updated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@vstinner vstinner changed the title [WIP] bpo-34687: asynico uses ProactorEventLoop by default bpo-34687: asynico uses ProactorEventLoop by default Sep 25, 2018
@1st1 1st1 merged commit 6ea29c5 into python:master Sep 25, 2018
@vstinner vstinner deleted the proactor_default branch September 25, 2018 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants