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.

Author qagren
Recipients qagren, serhiy.storchaka
Date 2018-10-26.07:47:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1540540038.76.0.788709270274.issue35073@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry for the misunderstanding, and thanks for clarifying!

So essentially what I am getting by `from app import __init__` is the `__init__` method of the module object bound to the name `app`.

However if I have a submodule `app/myapp.py`, `from app import myapp` will import it and bind it to the name `myapp`, whereas `importlib.import_module('app').myapp` raises AttributeError, so I guess the two forms not totally equivalent...


Anyways, I'll investigate deeper before creating an issue henceforth :)
History
Date User Action Args
2018-10-26 07:47:18qagrensetrecipients: + qagren, serhiy.storchaka
2018-10-26 07:47:18qagrensetmessageid: <1540540038.76.0.788709270274.issue35073@psf.upfronthosting.co.za>
2018-10-26 07:47:18qagrenlinkissue35073 messages
2018-10-26 07:47:18qagrencreate