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.

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:14sbtsetrecipients: + sbt, tim.peters, loewis, jhylton, brett.cannon, dcjim, ncoghlan, Rhamphoryncus, bronger, eric.araujo, flox, eric.snow
2012年11月14日 21:21:14sbtsetmessageid: <1352928074.18.0.517633089953.issue992389@psf.upfronthosting.co.za>
2012年11月14日 21:21:14sbtlinkissue992389 messages
2012年11月14日 21:21:13sbtcreate

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