Skip to content

Create a lazy import loader mixin #61821

@brettcannon

Description

@brettcannon
BPO 17621
Nosy @Yhg1s, @warsaw, @brettcannon, @ericvsmith, @jwilk, @ericsnowcurrently
Files
  • test_lazy_loader.py: tests
  • lazy_mixin.py: Solution using a mixin
  • lazy_proxy.py: Solution using a proxy
  • lazy_test.py
  • lazy_loader.diff
  • lazy_loader.diff
  • lazy_loader.diff
  • lazy_loader.diff: Detect sys.modules swap
  • 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/brettcannon'
    closed_at = <Date 2014-04-04.17:55:06.543>
    created_at = <Date 2013-04-02.18:00:47.615>
    labels = ['type-feature', 'library']
    title = 'Create a lazy import loader mixin'
    updated_at = <Date 2014-04-04.22:10:33.832>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2014-04-04.22:10:33.832>
    actor = 'eric.snow'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2014-04-04.17:55:06.543>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2013-04-02.18:00:47.615>
    creator = 'brett.cannon'
    dependencies = []
    files = ['30670', '30671', '30672', '33136', '33947', '34556', '34576', '34591']
    hgrepos = []
    issue_num = 17621
    keywords = ['patch']
    message_count = 26.0
    messages = ['185852', '191551', '191616', '191623', '191651', '191660', '191667', '191675', '191772', '191776', '191779', '201930', '202445', '206205', '206211', '210410', '214410', '214508', '214536', '214627', '214921', '214922', '214954', '215542', '215543', '215572']
    nosy_count = 10.0
    nosy_names = ['twouters', 'barry', 'brett.cannon', 'eric.smith', 'jwilk', 'durin42', 'Arfrever', 'python-dev', 'sbt', 'eric.snow']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17621'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions