Skip to content

importlib.resources.path() raises TypeError for packages without __file__ #86697

Description

@wkschwartz
mannequin
BPO 42531
Nosy @warsaw, @jaraco, @wkschwartz, @miss-islington
PRs
  • [3.8] bpo-42531: Teach importlib.resources.path to handle packages without __file__ #23611
  • [3.7] [3.8] bpo-42531: Teach importlib.resources.path to handle packages without __file__ (GH-23611) #24229
  • Files
  • path-test.py
  • 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-01-16.17:24:48.243>
    created_at = <Date 2020-12-02.06:31:42.364>
    labels = ['3.8', 'type-bug', 'library']
    title = 'importlib.resources.path() raises TypeError for packages without __file__'
    updated_at = <Date 2021-01-16.17:54:28.784>
    user = 'https://github.com/wkschwartz'

    bugs.python.org fields:

    activity = <Date 2021-01-16.17:54:28.784>
    actor = 'jaraco'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-01-16.17:24:48.243>
    closer = 'jaraco'
    components = ['Library (Lib)']
    creation = <Date 2020-12-02.06:31:42.364>
    creator = 'William.Schwartz'
    dependencies = []
    files = ['49643']
    hgrepos = []
    issue_num = 42531
    keywords = ['patch']
    message_count = 8.0
    messages = ['382297', '382350', '382423', '384418', '384744', '384745', '384864', '385145']
    nosy_count = 4.0
    nosy_names = ['barry', 'jaraco', 'William.Schwartz', 'miss-islington']
    pr_nums = ['23611', '24229']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42531'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions