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 skip.montanaro
Recipients skip.montanaro
Date 2010-04-14.00:03:29
SpamBayes Score 3.61575e-05
Marked as misclassified No
Message-id <1271203412.15.0.504789215632.issue8392@psf.upfronthosting.co.za>
In-reply-to
Content
At work we are in the process of migrating from Python 2.4 to 2.6.  One
bit of Boost.Python code needs to use PyImport_ImportModuleLevel which
references the __import__ docs.  That describes the use of the level arg.
I then went around looking for examples and didn't find much, certainly not in the Lib/test directory.  I only saw a couple examples which used
level and they both use level=0, so don't test relative imports or
level=-1.

I don't know that I have enough knowledge of how this stuff is supposed
to work, but will give it a shot.
History
Date User Action Args
2010-04-14 00:03:32skip.montanarosetrecipients: + skip.montanaro
2010-04-14 00:03:32skip.montanarosetmessageid: <1271203412.15.0.504789215632.issue8392@psf.upfronthosting.co.za>
2010-04-14 00:03:30skip.montanarolinkissue8392 messages
2010-04-14 00:03:30skip.montanarocreate