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 dkreuter
Recipients dkreuter
Date 2012-08-29.19:45:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346269515.86.0.485633003934.issue15816@psf.upfronthosting.co.za>
In-reply-to
Content
help("compile") # this works
import __builtin__
real_import = __import__
__builtin__.__import__ = lambda *a: real_import(*a)
help("compile") # this fails

The line responsible for this is in pydoc.py around line 300:
... elif exc is ImportError and extract_tb(tb)[-1][2]=='safeimport': ...
History
Date User Action Args
2012-08-29 19:45:18dkreutersetrecipients: + dkreuter
2012-08-29 19:45:15dkreutersetmessageid: <1346269515.86.0.485633003934.issue15816@psf.upfronthosting.co.za>
2012-08-29 19:45:13dkreuterlinkissue15816 messages
2012-08-29 19:45:06dkreutercreate