Message175592
| Author | sbt |
|---|---|
| Recipients | Rhamphoryncus, brett.cannon, bronger, dcjim, eric.araujo, eric.snow, flox, jhylton, loewis, ncoghlan, sbt, tim.peters |
| Date | 2012-11-14.21:21:13 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1352928074.18.0.517633089953.issue992389@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In Torsten's example
from . import moduleX
can be replaced with
moduleX = importlib.import_module('.moduleX', __package__) (*)
or
moduleX = importlib.import_module('package.moduleX')
If that is not pretty enough then perhaps the new syntax
import .moduleX
could be introduced and made equivalent to (*). |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-11-14 21:21:14 | sbt | set | recipients: + sbt, tim.peters, loewis, jhylton, brett.cannon, dcjim, ncoghlan, Rhamphoryncus, bronger, eric.araujo, flox, eric.snow |
| 2012-11-14 21:21:14 | sbt | set | messageid: <1352928074.18.0.517633089953.issue992389@psf.upfronthosting.co.za> |
| 2012-11-14 21:21:14 | sbt | link | issue992389 messages |
| 2012-11-14 21:21:13 | sbt | create | |