homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Create importlib.abc.Loader.init_module_attrs()
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, python-dev
Priority: normal Keywords:

Created on 2013年05月29日 00:08 by brett.cannon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (2)
msg190260 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2013年05月29日 00:08
There are a bunch of attributes that need to be set on a module, and yet they are only handled by various decorators in importlib.util. The problem with that is there is no way in the API to override or expand upon setting those attributes pre-loading; only post-loading like what set_loader and set_package do.
importlib.abc.Loader.init_module_attrs(module) would take a module and then using whatever methods are available, sets as many attributes as possible. This method can either be called before execution of the module's code or after some function is called that directly returns a loaded module (e.g. BuiltinImporter).
msg190423 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013年05月31日 22:57
New changeset e873f2e67353 by Brett Cannon in branch 'default':
Issues #18088, 18089: Introduce
http://hg.python.org/cpython/rev/e873f2e67353 
History
Date User Action Args
2022年04月11日 14:57:46adminsetgithub: 62288
2013年05月31日 22:59:34brett.cannonsetstatus: open -> closed
resolution: fixed
stage: test needed -> resolved
2013年05月31日 22:57:55python-devsetnosy: + python-dev
messages: + msg190423
2013年05月29日 00:09:48brett.cannonlinkissue18089 dependencies
2013年05月29日 00:08:36brett.cannonlinkissue18086 superseder
2013年05月29日 00:08:15brett.cannoncreate

AltStyle によって変換されたページ (->オリジナル) /