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

Lazy import in concurrent.futures produces partial import errors #87681

Closed
pitrou opened this issue Mar 16, 2021 · 2 comments
Closed

Lazy import in concurrent.futures produces partial import errors #87681

pitrou opened this issue Mar 16, 2021 · 2 comments
Labels
3.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Mar 16, 2021

BPO 43515
Nosy @pitrou, @methane
Superseder
  • bpo-43517: Fix false positives in circular import detection with from-imports
  • 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-03-16.16:17:16.753>
    created_at = <Date 2021-03-16.14:58:40.208>
    labels = ['type-bug', 'library', '3.9', '3.10']
    title = 'Lazy import in concurrent.futures produces partial import errors'
    updated_at = <Date 2021-03-16.16:17:16.753>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2021-03-16.16:17:16.753>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-03-16.16:17:16.753>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2021-03-16.14:58:40.208>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43515
    keywords = []
    message_count = 2.0
    messages = ['388844', '388845']
    nosy_count = 2.0
    nosy_names = ['pitrou', 'methane']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '43517'
    type = 'behavior'
    url = 'https://bugs.python.org/issue43515'
    versions = ['Python 3.9', 'Python 3.10']

    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 16, 2021

    Here is a reproducer script:
    https://gist.github.com/pitrou/a73fa2cfce2557e0dd435353b9976972

    With Python 3.6 it works fine.

    @pitrou pitrou added 3.8 only security fixes 3.10 only security fixes 3.9 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Mar 16, 2021
    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 16, 2021

    Bisecting actually points to bpo-35943.

    @pitrou pitrou removed 3.8 only security fixes labels Mar 16, 2021
    @pitrou pitrou closed this as completed Mar 16, 2021
    @pitrou pitrou closed this as completed Mar 16, 2021
    @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.9 only security fixes 3.10 only security fixes stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant