Skip to content

Modify IMPORT_FROM to fallback on sys.modules #61836

@brettcannon

Description

@brettcannon
BPO 17636
Nosy @warsaw, @brettcannon, @pjeby, @ncoghlan, @pitrou, @kristjanvalur, @methane, @ericsnowcurrently, @serhiy-storchaka, @phmc
PRs
  • bpo-39551: mock patch should match behavior of import from when module isn't present in sys.modules #18347
  • Files
  • circular_import_tests.diff
  • import_from_tests.diff
  • import_from_tests2.diff
  • import_from_tests2.diff
  • circrelimports.patch
  • 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 2014-10-13.18:22:42.749>
    created_at = <Date 2013-04-05.01:15:02.295>
    labels = ['interpreter-core', 'type-bug']
    title = 'Modify IMPORT_FROM to fallback on sys.modules'
    updated_at = <Date 2020-02-04.20:36:51.966>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2020-02-04.20:36:51.966>
    actor = 'dino.viehland'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-10-13.18:22:42.749>
    closer = 'pitrou'
    components = ['Interpreter Core']
    creation = <Date 2013-04-05.01:15:02.295>
    creator = 'brett.cannon'
    dependencies = []
    files = ['30115', '30132', '36803', '36804', '36805']
    hgrepos = []
    issue_num = 17636
    keywords = ['patch']
    message_count = 34.0
    messages = ['186059', '186073', '186078', '186079', '186080', '186093', '186095', '186096', '186098', '186102', '186103', '186887', '186922', '188319', '188417', '188441', '190667', '190670', '190671', '190673', '190679', '206434', '206476', '228497', '228501', '228502', '228822', '228833', '228915', '228927', '228928', '229257', '229258', '232601']
    nosy_count = 13.0
    nosy_names = ['barry', 'brett.cannon', 'pje', 'ncoghlan', 'pitrou', 'kristjan.jonsson', 'methane', 'python-dev', 'eric.snow', 'serhiy.storchaka', 'pconnell', 'isoschiz', 'Pascal.Chambon']
    pr_nums = ['18347']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17636'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

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

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions