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

More documentation for the imp module #37237

Closed
jhorneman mannequin opened this issue Sep 29, 2002 · 4 comments
Closed

More documentation for the imp module #37237

jhorneman mannequin opened this issue Sep 29, 2002 · 4 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@jhorneman
Copy link
Mannequin

jhorneman mannequin commented Sep 29, 2002

BPO 616247
Nosy @brettcannon, @rhettinger, @facundobatista

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 2009-04-02.05:43:21.038>
created_at = <Date 2002-09-29.19:58:55.000>
labels = ['type-feature', 'docs']
title = 'More documentation for the imp module'
updated_at = <Date 2009-04-02.05:43:21.036>
user = 'https://bugs.python.org/jhorneman'

bugs.python.org fields:

activity = <Date 2009-04-02.05:43:21.036>
actor = 'brett.cannon'
assignee = 'brett.cannon'
closed = True
closed_date = <Date 2009-04-02.05:43:21.038>
closer = 'brett.cannon'
components = ['Documentation']
creation = <Date 2002-09-29.19:58:55.000>
creator = 'jhorneman'
dependencies = []
files = []
hgrepos = []
issue_num = 616247
keywords = []
message_count = 4.0
messages = ['53633', '53634', '60141', '85170']
nosy_count = 5.0
nosy_names = ['brett.cannon', 'rhettinger', 'jvr', 'facundobatista', 'jhorneman']
pr_nums = []
priority = 'low'
resolution = 'wont fix'
stage = 'needs patch'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue616247'
versions = ['Python 3.1', 'Python 2.7']

@jhorneman
Copy link
Mannequin Author

jhorneman mannequin commented Sep 29, 2002

Not all of the public functions of the imp module appear to be
documented (in section 3.21, Python version
2.2).

get_frozen_object
load_package
PY_CODERESOURCE

are
not documented.

Also, the documentation for
load_module() can be a bit confusing, partially due to inconsistent
use of the word pairs 'tuple' / 'triple' and 'pathname' /
'filename'.

(I did not need the abovementioned public
functions, but while struggling with this module I noticed them and
wondered if the documentation was outdated, or whether they held
the key to my success.)

@jhorneman jhorneman mannequin assigned jvr Sep 29, 2002
@jhorneman jhorneman mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Sep 29, 2002
@jhorneman jhorneman mannequin assigned jvr Sep 29, 2002
@jhorneman jhorneman mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Sep 29, 2002
@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

I believe both functions are obsolete and are subsumed by
load_module() and find_module(). I don't know about
Py_CODERESOURCE (it is MacIntosh specific).

Referring to jvr for disposition on the first two and then to
Jack for the third.

@facundobatista
Copy link
Member

If those two are obsolete, we may add a DeprecationWarning in 2.6 and
hide/remove them in 2.7.

What do you think?

@devdanzin devdanzin mannequin assigned brettcannon and unassigned jvr Feb 11, 2009
@brettcannon
Copy link
Member

As Raymond pointed out, people should not use the undocumented
functions. Deprecation should be a separate issue.

@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
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

3 participants