[issue18086] Create importlib.util.set_attrs_post_import()

2013-05-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> rejected status: open -> closed superseder: -> Create importlib.abc.Loader.init_module_attrs() ___ Python tracker ___ __

[issue18086] Create importlib.util.set_attrs_post_import()

2013-05-28 Thread Brett Cannon
New submission from Brett Cannon: There is no good reason to have set_loader and set_package separately. There should just be a single decorator which sets both of those attributes post-import (with the proper doc note saying use module_for_loader instead when possible to have the attributes s