← 返回首页
Absolute/relative import not working? · Issue #43535 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Absolute/relative import not working? #43535

New issue
New issue

Description

BPO 1510172
Nosy @Yhg1s, @ncoghlan
Files
  • package.tgz: Re-creation of PEP 328 example package structure
  • main_relative_imports.diff: Allow relative imports from main when -m is used
  • 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 = 'https://github.com/ncoghlan' closed_at = <Date 2007-12-03.13:03:08.768> created_at = <Date 2006-06-21.19:35:52.000> labels = ['interpreter-core', 'type-bug'] title = 'Absolute/relative import not working?' updated_at = <Date 2007-12-03.13:03:08.767> user = 'https://bugs.python.org/mitchchapman'

    bugs.python.org fields:

    activity = <Date 2007-12-03.13:03:08.767> actor = 'ncoghlan' assignee = 'ncoghlan' closed = True closed_date = <Date 2007-12-03.13:03:08.768> closer = 'ncoghlan' components = ['Interpreter Core'] creation = <Date 2006-06-21.19:35:52.000> creator = 'mitchchapman' dependencies = [] files = ['2035', '2036'] hgrepos = [] issue_num = 1510172 keywords = [] message_count = 11.0 messages = ['28851', '28852', '28853', '28854', '28855', '28856', '28857', '28858', '28859', '28860', '58121'] nosy_count = 6.0 nosy_names = ['twouters', 'nnorwitz', 'mitchchapman', 'ncoghlan', 'zseil', 'mnot'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = None status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue1510172' versions = ['Python 2.6']

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.