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 eric.snow
Recipients brett.cannon, eric.snow, jaraco
Date 2012-01-31.01:46:53
SpamBayes Score 0.0005665096
Marked as misclassified No
Message-id <1327974417.05.0.00912499830975.issue13912@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is your level is off and the name is incomplete.  master.pkgA.foo.py should have the following:

__import__('pkgB.bar', master.pkgA.__dict__, level=2).bar

or 

__import__('pkgB.bar', master.pkgA.__dict__, fromlist=['-'], level=2)
History
Date User Action Args
2012-01-31 01:46:57eric.snowsetrecipients: + eric.snow, brett.cannon, jaraco
2012-01-31 01:46:57eric.snowsetmessageid: <1327974417.05.0.00912499830975.issue13912@psf.upfronthosting.co.za>
2012-01-31 01:46:53eric.snowlinkissue13912 messages
2012-01-31 01:46:53eric.snowcreate