Skip to content

Conversation

@vstinner
Copy link
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.
Windows
=======

The default event loop on Windows is :class:`ProactorEventLoop`.
Copy link
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
Member Author

Choose a reason for hiding this comment

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

done

asyncio.run(your_code())
The default event loop :class:`ProactorEventLoop` supports subprocesses.

On Windows, :class:`SelectorEventLoop` does not support subprocesses.
Copy link
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
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

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

@vstinner
Copy link
Member Author

I have made the requested changes; please review again.

@bedevere-bot
Copy link

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

Choose a reason for hiding this comment

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

^^^ updated

Copy link
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