Given an index in the stack return whether it should be skipped. This is used in up/down and where to skip frames.
(self, stack)
| 417 | return False |
| 418 | |
| 419 | def hidden_frames(self, stack): |
| 420 | """ |
| 421 | Given an index in the stack return whether it should be skipped. |
| 422 | |
| 423 | This is used in up/down and where to skip frames. |
| 424 | """ |
| 425 | # The f_locals dictionary is updated from the actual frame |
| 426 | # locals whenever the .f_locals accessor is called, so we |
| 427 | # avoid calling it here to preserve self.curframe_locals. |
| 428 | # Furthermore, there is no good reason to hide the current frame. |
| 429 | ip_hide = [self._hidden_predicate(s[0]) for s in stack] |
| 430 | ip_start = [i for i, s in enumerate(ip_hide) if s == "__ipython_bottom__"] |
| 431 | if ip_start and self._predicates["ipython_internal"]: |
| 432 | ip_hide = [h if i > ip_start[0] else True for (i, h) in enumerate(ip_hide)] |
| 433 | return ip_hide |
| 434 | |
| 435 | if CHAIN_EXCEPTIONS: |
| 436 |