8000 `-X showrefcount` doesn't do per-statement reports in new REPL · Issue #134097 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

-X showrefcount doesn't do per-statement reports in new REPL #134097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
encukou opened this issue May 16, 2025 · 2 comments
Closed

-X showrefcount doesn't do per-statement reports in new REPL #134097

encukou opened this issue May 16, 2025 · 2 comments
Assignees
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes 3.15 new features, bugs and security fixes stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error

Comments

@encukou
Copy link
Member
encukou commented May 16, 2025

Bug report

Bug description:

-X showrefcount should “output the total reference count and number of used memory blocks [...] after each statement in the interactive interpreter. This only works on debug builds.”

This works with PYTHON_BASIC_REPL=1, but with the new REPL the totals are only shown at exit.

CPython versions tested on:

3.13, 3.14, CPython main branch

Operating systems tested on:

Linux

Linked PRs

@encukou encukou added type-bug An unexpected behavior, bug, or error topic-repl Related to the interactive shell labels May 16, 2025
@picnixz picnixz added the stdlib Python modules in the Lib dir label May 16, 2025
@Eclips4
Copy link
Member
Eclips4 commented May 16, 2025

Hi Petr, are you working on this? Happy to take it if you're busy! :)

@Eclips4 Eclips4 added 3.13 bugs and security fixes 3.14 bugs and security fixes 3.15 new features, bugs and security fixes stdlib Python modules in the Lib dir and removed stdlib Python modules in the Lib dir labels May 16, 2025
@encukou
Copy link
Member Author
encukou commented May 16, 2025 via email

@Eclips4 Eclips4 self-assigned this May 16, 2025
ambv added a commit that referenced this issue May 19, 2025
…REPL (gh-134136)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 19, 2025
…n new REPL (pythongh-134136)

(cherry picked from commit c31547a)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue May 19, 2025
…n new REPL (pythongh-134136)

(cherry picked from commit c31547a)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv added a commit that referenced this issue May 19, 2025
…in new REPL (gh-134136) (gh-134221)

(cherry picked from commit c31547a)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv added a commit that referenced this issue May 19, 2025
…in new REPL (gh-134136) (gh-134220)

(cherry picked from commit c31547a)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@ambv ambv closed this as completed May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes 3.15 new features, bugs and security fixes stdlib Python modules in the Lib dir topic-repl Related to the interactive shell type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants
0