]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107758: Improvements to lltrace feature (#107757)
authorGuido van Rossum <guido@python.org>
Tue, 8 Aug 2023 04:36:25 +0000 (21:36 -0700)
committerGitHub <noreply@github.com>
Tue, 8 Aug 2023 04:36:25 +0000 (21:36 -0700)
commit328d925244511b2134d5ac926e307e4486ff4500
tree5664372efae8658277c3a175bbd42065b533d362
parent2df58dcd500dbedc61d0630374f9e94c522fe523
gh-107758: Improvements to lltrace feature (#107757)

- The `dump_stack()` method could call a `__repr__` method implemented in Python,
  causing (infinite) recursion.
  I rewrote it to only print out the values for some fundamental types (`int`, `str`, etc.);
  for everything else it just prints `<type_name @ 0xdeadbeef>`.

- The lltrace-like feature for uops wrote to `stderr`, while the one in `ceval.c` writes to `stdout`;
  I changed the uops to write to stdout as well.
Misc/NEWS.d/next/Core and Builtins/2023-08-08-02-46-46.gh-issue-107758.R5kyBI.rst [new file with mode: 0644]
Python/ceval.c
Python/executor.c
Python/optimizer.c