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-43216: Remove @asyncio.coroutine #26369

Merged
merged 7 commits into from
Jul 1, 2021
Merged

Conversation

illia-v
Copy link
Contributor

@illia-v illia-v commented May 25, 2021

@asyncio.coroutine was scheduled for removal in Python 3.10 originally.

https://bugs.python.org/issue43216

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

Doc/whatsnew/3.11.rst Outdated Show resolved Hide resolved
Lib/asyncio/coroutines.py Show resolved Hide resolved
Doc/whatsnew/3.11.rst Outdated Show resolved Hide resolved
@illia-v illia-v requested a review from vstinner May 26, 2021 16:59
@illia-v illia-v requested a review from vstinner May 26, 2021 20:27
@illia-v illia-v requested a review from vstinner May 26, 2021 20:49
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. But I would prefer that @1st1 or @asvetlov merged it.

I only quickly looked at test changes. I'm fine with removing legacy @asyncio.coroutine, async def is now standard and preferred.

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Jul 1, 2021
@graingert
Copy link
Contributor

This isn't stale

@graingert
Copy link
Contributor

@1st1 @asvetlov

@vstinner vstinner closed this Jul 1, 2021
@vstinner vstinner reopened this Jul 1, 2021
@vstinner
Copy link
Member

vstinner commented Jul 1, 2021

multiprocessing tests hang on Address sanitizer. I cannot merge the PR because of it :-(

cc @pablogsal

@pablogsal
Copy link
Member

pablogsal commented Jul 1, 2021

multiprocessing tests hang on Address sanitizer. I cannot merge the PR because of it :-(

That's weird. Maybe run them again? We can look into increasing timeout for that run or excluding those

@corona10 corona10 requested a review from aeros July 1, 2021 02:20
@vstinner vstinner merged commit a1092f6 into python:main Jul 1, 2021
@vstinner
Copy link
Member

vstinner commented Jul 1, 2021

Merged, thanks.

I decided to no longer wait for @1st1 or @asvetlov since they seem to be busy. The change looks reasonable.

If this change breaks too many asyncio project, we can consider to revert it, help projects to migrate, and reschedule the removal once enough projects migrated. I hope that in 2021, most projects are now written with "async def" and "await". The @coroutine syntax is a legacy of Python 3.4-3.5 era. I know that one of reasons why Instagram migrated from Python 2.7 to 3.6 is to get async def syntax!

@graingert
Copy link
Contributor

graingert commented Jul 1, 2021

@vstinner did this miss the deadline for py3.10 backport?

@illia-v
Copy link
Contributor Author

illia-v commented Jul 1, 2021

Thanks @vstinner & @graingert!


@vstinner did this miss the deadline for py3.10 backport?

This removal was discussed shortly before the 3.10 feature freeze. Victor suggested to wait for Python 3.11 to remove the decorator.

@illia-v illia-v deleted the bpo-43216 branch July 1, 2021 13:43
@vstinner
Copy link
Member

vstinner commented Jul 1, 2021

This removal was discussed shortly before the 3.10 feature freeze. Victor suggested to wait for Python 3.11 to remove the decorator.

Exactly ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Stale PR or inactive for long period of time.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants