(self, func, *args, **kwds)
| 618 | |
| 619 | @contextmanager |
| 620 | def call_on_stack(self, func, *args, **kwds): |
| 621 | self.current_stack_level += 1 |
| 622 | self.stack[func].append(self.current_stack_level) |
| 623 | |
| 624 | yield func(*args, **kwds) |
| 625 | |
| 626 | self.current_stack_level -= 1 |
| 627 | |
| 628 | def show_results(self, stream=None): |
| 629 | if stream is None: |