Skip to content

Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation #87400

Closed

Description

@illia-v
mannequin
BPO 43234
Nosy @asvetlov, @serhiy-storchaka, @1st1, @illia-v
PRs
  • bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor #24540
  • 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 2021-07-01.14:48:27.705>
    created_at = <Date 2021-02-15.20:11:41.237>
    labels = ['3.11', 'expert-asyncio']
    title = 'Prohibit passing non-ThreadPoolExecutor executors to loop.set_default_executor following a deprecation'
    updated_at = <Date 2021-07-01.14:48:27.704>
    user = 'https://github.com/illia-v'

    bugs.python.org fields:

    activity = <Date 2021-07-01.14:48:27.704>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-01.14:48:27.705>
    closer = 'serhiy.storchaka'
    components = ['asyncio']
    creation = <Date 2021-02-15.20:11:41.237>
    creator = 'illia-v'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43234
    keywords = ['patch']
    message_count = 3.0
    messages = ['387052', '396815', '396816']
    nosy_count = 4.0
    nosy_names = ['asvetlov', 'serhiy.storchaka', 'yselivanov', 'illia-v']
    pr_nums = ['24540']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue43234'
    versions = ['Python 3.11']

    Activity

    1. illia-v commented on Feb 15, 2021

      illia-vmannequin
      MannequinAuthor

      if not isinstance(executor, concurrent.futures.ThreadPoolExecutor):
      warnings.warn(
      'Using the default executor that is not an instance of '
      'ThreadPoolExecutor is deprecated and will be prohibited '
      'in Python 3.9',
      DeprecationWarning, 2)

      Setting non-ThreadPoolExecutor executors was supposed to be prohibited in Python 3.9.

    2. added
      3.11only security fixes
      and removed on Jun 28, 2021
    3. serhiy-storchaka commented on Jul 1, 2021

      @serhiy-storchaka
      Member

      New changeset ddd5f36 by Illia Volochii in branch 'main':
      bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor (GH-24540)
      ddd5f36

    4. serhiy-storchaka commented on Jul 1, 2021

      @serhiy-storchaka
      Member

      Thank you for your contribution Illia.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions