Skip to content

ImportError module attribute #55066

Closed
Closed

Description

@techtonik
mannequin
BPO 10857
Nosy @briancurtin
Superseder
  • bpo-1559549: ImportError needs attributes for module and file name
  • 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 2011-01-07.16:28:22.312>
    created_at = <Date 2011-01-07.16:26:23.150>
    labels = ['type-feature']
    title = 'ImportError module attribute'
    updated_at = <Date 2011-01-07.17:04:22.107>
    user = 'https://bugs.python.org/techtonik'

    bugs.python.org fields:

    activity = <Date 2011-01-07.17:04:22.107>
    actor = 'techtonik'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-01-07.16:28:22.312>
    closer = 'brian.curtin'
    components = []
    creation = <Date 2011-01-07.16:26:23.150>
    creator = 'techtonik'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 10857
    keywords = []
    message_count = 3.0
    messages = ['125656', '125658', '125659']
    nosy_count = 2.0
    nosy_names = ['techtonik', 'brian.curtin']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '1559549'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10857'
    versions = []

    Activity

    1. techtonik commented on Jan 7, 2011

      techtonikmannequin
      MannequinAuthor

      Need ImportError.module attribute to get the name of failed import. Right now it requires parsing ImportError.args that is presented in form "('No module named zqwer',)" that is not pythonic.

    2. briancurtin commented on Jan 7, 2011

      @briancurtin
      Member

      Duplicate of bpo-1559549

    3. techtonik commented on Jan 7, 2011

      techtonikmannequin
      MannequinAuthor

      Thanks for the pointer. I couldn't find it myself.

    4. 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

      type-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions