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

bpo-34679: Add conditional to BaseProactorEventLoop init #15477

Closed
wants to merge 1 commit into from

Conversation

aeros
Copy link
Member

@aeros aeros commented Aug 24, 2019

Adds a conditional to BaseProactorEventLoop.__init__() to only call set_wakeup_fd() if the current thread is the main thread. Fixes asyncio Windows (this error only occurs on Windows) ValueError (see bpo issue comments).

https://bugs.python.org/issue34679

@aeros
Copy link
Member Author

aeros commented Aug 24, 2019

Since this PR is primarily a small internal change to the initialization for BaseProactorEventLoop, I don't think it needs a news entry. If it's needed, I don't mind adding one though.

@aeros
Copy link
Member Author

aeros commented Aug 24, 2019

Normally I would wait a bit before sending out notifications, but I'll do so now since this issue is a release blocker for 3.8.0b4 (which is scheduled for release on 8/26/19).

/cc @python/asyncio

@aeros
Copy link
Member Author

aeros commented Aug 25, 2019

Since Andrew Svetlov submitted a similar PR (#15492) soon afterwards but added tests, I'll close this one.

@aeros aeros closed this Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants