Skip to content

bpo-34679: Add conditional to BaseProactorEventLoop init#15477

Closed
aeros wants to merge 1 commit into
python:masterfrom
aeros:bpo-34679
Closed

bpo-34679: Add conditional to BaseProactorEventLoop init#15477
aeros wants to merge 1 commit into
python:masterfrom
aeros:bpo-34679

Conversation

@aeros
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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.

3 participants