Skip to content

Re-implement parts of imp in pure Python #58167

@brettcannon

Description

@brettcannon
BPO 13959
Nosy @brettcannon, @birkenfeld, @pitrou, @vstinner, @benjaminp, @merwok, @meadori, @ericsnowcurrently, @berkerpeksag
PRs
  • bpo-32030: pass interp to _PyImport_Init() #4736
  • Dependencies
  • bpo-2377: Replace import w/ importlib.import
  • bpo-14605: Make import machinery explicit
  • bpo-14657: Avoid two importlib copies
  • bpo-15166: Implement imp.get_tag() using sys.implementation
  • bpo-15167: Re-implement imp.get_magic() in pure Python
  • Files
  • imp.diff
  • imp.diff
  • use_of_imp.txt: stdlib modules that use imp (could be refactored to use importlib)
  • imp_find_module.diff: sketch of find_module() implementation
  • issue13959_reload.diff: port of _imp.reload() to imp.py
  • issue13959_magic_and_tag.diff: one approach to moving the magic and tag code out of import.c
  • explicit_meta_path.diff
  • explicit_path_hooks.diff
  • issue13959_magic.diff: porting MAGIC to importlib
  • issue13959_tag.diff: porting TAG to importlib
  • imptest.py
  • issue13959_get_tag.diff: new TAG implementation using sys.implementation
  • 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 2012-07-09.20:23:48.007>
    created_at = <Date 2012-02-07.00:51:29.679>
    labels = ['library', 'release-blocker']
    title = 'Re-implement parts of imp in pure Python'
    updated_at = <Date 2017-12-06.16:25:57.617>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2017-12-06.16:25:57.617>
    actor = 'vstinner'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2012-07-09.20:23:48.007>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2012-02-07.00:51:29.679>
    creator = 'brett.cannon'
    dependencies = ['2377', '14605', '14657', '15166', '15167']
    files = ['24846', '24979', '24980', '25250', '25302', '25303', '25308', '25309', '25335', '25336', '25834', '26058']
    hgrepos = []
    issue_num = 13959
    keywords = ['patch']
    message_count = 76.0
    messages = ['152800', '155790', '156473', '156474', '156475', '156527', '156530', '156964', '158269', '158362', '158364', '158365', '158370', '158371', '158377', '158383', '158398', '158474', '158522', '158531', '158555', '158575', '158593', '158594', '158622', '158628', '158704', '158895', '158908', '158930', '158931', '158939', '158941', '158951', '158955', '158968', '158971', '158985', '158986', '158995', '158998', '158999', '159118', '159119', '159628', '159630', '159631', '159641', '159644', '159757', '159758', '159960', '159962', '159969', '160424', '160433', '160434', '160439', '160493', '160495', '160524', '162276', '162356', '162357', '162364', '162384', '162940', '163212', '163232', '163569', '163798', '164102', '165116', '165120', '165148', '307747']
    nosy_count = 12.0
    nosy_names = ['brett.cannon', 'georg.brandl', 'jpe', 'pitrou', 'vstinner', 'benjamin.peterson', 'eric.araujo', 'Arfrever', 'meador.inge', 'python-dev', 'eric.snow', 'berker.peksag']
    pr_nums = ['4736']
    priority = 'release blocker'
    resolution = 'fixed'
    stage = 'needs patch'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue13959'
    versions = ['Python 3.3']

    Metadata

    Metadata

    Assignees

    Labels

    release-blockerstdlibStandard Library Python modules in the Lib/ directory

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions