Skip to content

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

Closed
@encukou

Description

@encukou

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

Metadata

Metadata

Assignees

Labels

3.13bugs and security fixes3.14bugs and security fixes3.15new features, bugs and security fixesstdlibPython modules in the Lib dirtopic-replRelated to the interactive shelltype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions