Skip to content

Deprecate imp.new_module() in favour of types.ModuleType #62107

Closed

Description

@brettcannon
BPO 17907
Nosy @brettcannon, @pitrou, @ezio-melotti

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 2013-06-14.23:20:25.462>
created_at = <Date 2013-05-04.18:25:08.556>
labels = ['easy', 'type-feature', 'library']
title = 'Deprecate imp.new_module() in favour of types.ModuleType'
updated_at = <Date 2013-06-15.02:26:38.893>
user = 'https://github.com/brettcannon'

bugs.python.org fields:

activity = <Date 2013-06-15.02:26:38.893>
actor = 'python-dev'
assignee = 'brett.cannon'
closed = True
closed_date = <Date 2013-06-14.23:20:25.462>
closer = 'brett.cannon'
components = ['Library (Lib)']
creation = <Date 2013-05-04.18:25:08.556>
creator = 'brett.cannon'
dependencies = []
files = []
hgrepos = []
issue_num = 17907
keywords = ['easy']
message_count = 4.0
messages = ['188388', '188439', '191171', '191185']
nosy_count = 5.0
nosy_names = ['brett.cannon', 'pitrou', 'ezio.melotti', 'Arfrever', 'python-dev']
pr_nums = []
priority = 'low'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue17907'
versions = ['Python 3.4']

Activity

  1. brettcannon commented on May 4, 2013

    @brettcannon
    MemberAuthor

    imp.new_module() does not need to exist since code can use types.ModuleType's constructor.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on May 4, 2013
  3. pitrou commented on May 5, 2013

    @pitrou
    Member

    If so, then at least the constructor should be documented.

  4. python-dev commented on Jun 14, 2013

    python-devmannequin
    Mannequin

    New changeset be50f1403f4d by Brett Cannon in branch 'default':
    Issue bpo-17907: Document types.ModuleType's constructor and attributes,
    http://hg.python.org/cpython/rev/be50f1403f4d

  5. python-dev commented on Jun 15, 2013

    python-devmannequin
    Mannequin

    New changeset 9cacdb9d0c59 by Brett Cannon in branch 'default':
    Issue bpo-17907: touch up the code for imp.new_module().
    http://hg.python.org/cpython/rev/9cacdb9d0c59

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

easystdlibStandard 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