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

IDLE [Open module]: import submodules #37090

Closed
tzot mannequin opened this issue Aug 26, 2002 · 5 comments
Closed

IDLE [Open module]: import submodules #37090

tzot mannequin opened this issue Aug 26, 2002 · 5 comments
Assignees

Comments

@tzot
Copy link
Mannequin

tzot mannequin commented Aug 26, 2002

BPO 600152
Nosy @rhettinger
Files
  • EditorWindow.py.diff: Diff -u output; load submodules in IDLE through [Open module] menu command
  • EditorWindow.py.diff: diff -u
  • EditorWindow.py.diff_2: diff -u to EditorWindow.py; handle also the case of doing 'open.module' on eg. 'os.path'
  • 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/rhettinger'
    closed_at = <Date 2002-09-08.03:43:41.000>
    created_at = <Date 2002-08-26.11:51:21.000>
    labels = ['expert-IDLE']
    title = 'IDLE [Open module]: import submodules'
    updated_at = <Date 2002-09-08.03:43:41.000>
    user = 'https://bugs.python.org/tzot'

    bugs.python.org fields:

    activity = <Date 2002-09-08.03:43:41.000>
    actor = 'rhettinger'
    assignee = 'rhettinger'
    closed = True
    closed_date = None
    closer = None
    components = ['IDLE']
    creation = <Date 2002-08-26.11:51:21.000>
    creator = 'tzot'
    dependencies = []
    files = ['4537', '4538', '4539']
    hgrepos = []
    issue_num = 600152
    keywords = ['patch']
    message_count = 5.0
    messages = ['41030', '41031', '41032', '41033', '41034']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'tzot']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue600152'
    versions = ['Python 2.3']

    @tzot
    Copy link
    Mannequin Author

    tzot mannequin commented Aug 26, 2002

    Since imp module's find_module can't find submodules,
    we can use the __import__ builtin to get the path to the
    submodule, and then call the imp.find_module function.

    @tzot tzot mannequin closed this as completed Aug 26, 2002
    @tzot tzot mannequin assigned rhettinger Aug 26, 2002
    @tzot tzot mannequin added the topic-IDLE label Aug 26, 2002
    @tzot
    Copy link
    Mannequin Author

    tzot mannequin commented Aug 26, 2002

    Logged In: YES
    user_id=539787

    Added some code to handle correctly trying to open modules
    such as os.path

    @tzot
    Copy link
    Mannequin Author

    tzot mannequin commented Aug 26, 2002

    Logged In: YES
    user_id=539787

    Added code to correctly handle the case of trying to open
    submodules like 'os.path'

    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Looks good. Will apply when I get back from this weekend.

    @rhettinger
    Copy link
    Contributor

    Logged In: YES
    user_id=80475

    Revised patch and committed as
    EditorWindow.py 1.43.
    Marking as fixed and closing patch.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant