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

Make Task.set_name() mandatory for third-parties #91151

Closed
asvetlov opened this issue Mar 12, 2022 · 2 comments
Closed

Make Task.set_name() mandatory for third-parties #91151

asvetlov opened this issue Mar 12, 2022 · 2 comments
Labels
3.11 only security fixes topic-asyncio

Comments

@asvetlov
Copy link
Contributor

BPO 46995
Nosy @asvetlov, @1st1
PRs
  • bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations #31838
  • 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 2022-03-13.16:35:26.697>
    created_at = <Date 2022-03-12.11:48:31.636>
    labels = ['3.11', 'expert-asyncio']
    title = 'Make Task.set_name() mandatory for third-parties'
    updated_at = <Date 2022-03-13.16:35:26.696>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2022-03-13.16:35:26.696>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-13.16:35:26.697>
    closer = 'asvetlov'
    components = ['asyncio']
    creation = <Date 2022-03-12.11:48:31.636>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46995
    keywords = ['patch']
    message_count = 2.0
    messages = ['414990', '415040']
    nosy_count = 2.0
    nosy_names = ['asvetlov', 'yselivanov']
    pr_nums = ['31838']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46995'
    versions = ['Python 3.11']

    @asvetlov
    Copy link
    Contributor Author

    The method was introduced by Python 3.8

    Let's raise DeprecationWarning if third-party task implementation doesn't support it. Convert the depreciation into a strict error in Python 3.13

    @asvetlov asvetlov added 3.11 only security fixes topic-asyncio labels Mar 12, 2022
    @asvetlov
    Copy link
    Contributor Author

    New changeset 7e473e9 by Andrew Svetlov in branch 'main':
    bpo-46995: Deprecate missing asyncio.Task.set_name() for third-party task implementations (GH-31838)
    7e473e9

    @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.11 only security fixes topic-asyncio
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant