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

Remove asyncio.async function #76453

Closed
1st1 opened this issue Dec 10, 2017 · 3 comments
Closed

Remove asyncio.async function #76453

1st1 opened this issue Dec 10, 2017 · 3 comments
Labels
3.7 (EOL) end of life topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@1st1
Copy link
Member

1st1 commented Dec 10, 2017

BPO 32272
Nosy @asvetlov, @1st1
PRs
  • bpo-32272: Remove asyncio.async() function. #4784
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-12-11.15:04:05.659>
    created_at = <Date 2017-12-10.23:57:08.282>
    labels = ['type-bug', '3.7', 'expert-asyncio']
    title = 'Remove asyncio.async function'
    updated_at = <Date 2017-12-11.15:04:05.658>
    user = 'https://github.com/1st1'

    bugs.python.org fields:

    activity = <Date 2017-12-11.15:04:05.658>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-12-11.15:04:05.659>
    closer = 'yselivanov'
    components = ['asyncio']
    creation = <Date 2017-12-10.23:57:08.282>
    creator = 'yselivanov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32272
    keywords = ['patch']
    message_count = 3.0
    messages = ['308006', '308007', '308048']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'yselivanov']
    pr_nums = ['4784']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32272'
    versions = ['Python 3.7']

    @1st1
    Copy link
    Member Author

    1st1 commented Dec 10, 2017

    asyncio.async() is a deprecated alias for asyncio.ensure_future().

    Since Python 3.7, async and await are proper keywords, and it is no longer possible to use the function. I.e. both 'from asyncio import async' and 'asyncio.async(...)' are a SyntaxError.

    @1st1 1st1 added 3.7 (EOL) end of life topic-asyncio type-bug An unexpected behavior, bug, or error labels Dec 10, 2017
    @1st1
    Copy link
    Member Author

    1st1 commented Dec 10, 2017

    The function has been deprecated since Python 3.4.4.

    @1st1
    Copy link
    Member Author

    1st1 commented Dec 11, 2017

    New changeset 9edad3c by Yury Selivanov in branch 'master':
    bpo-32272: Remove asyncio.async() function. (bpo-4784)
    9edad3c

    @1st1 1st1 closed this as completed Dec 11, 2017
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life topic-asyncio type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant