[New-bugs-announce] [issue15486] Standardise the mechanisms for stripping importlib frames

Nick Coghlan report at bugs.python.org
Sun Jul 29 12:46:43 CEST 2012


New submission from Nick Coghlan:

Thanks to issue #15425, the number of special cases in the importlib frame stripping is growing. This patch tweaks the frame stripping mechanism to make it easy to selectively strip frames in importlib._bootstrap by creating a _call_with_frames_removed helper function.

The rules in remove_importlib_frames then change to remove any sequence of importlib frames which ends with that helper and all importlib frames in the ImportError case.

----------
messages: 166745
nosy: ncoghlan
priority: normal
severity: normal
status: open
title: Standardise the mechanisms for stripping importlib frames

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15486>
_______________________________________


More information about the New-bugs-announce mailing list