8000 gh-134097: Print number of refs & blocks after each statement in new REPL by Eclips4 · Pull Request #134136 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-134097: Print number of refs & blocks after each statement in new REPL #134136

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

Merged
merged 4 commits into from
May 19, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary newline
  • Loading branch information
Eclips4 committed May 17, 2025
commit a2d21e455eda28680a463ab331d23533e97f9798
2 changes: 1 addition & 1 deletion Lib/_pyrepl/simple_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ def maybe_run_command(statement: str) -> bool:
console.showtraceback()
console.resetbuffer()
if showrefcount:
console.write(f"\n[{sys.gettotalrefcount()} refs, {sys.getallocatedblocks()} blocks]\n")
console.write(f"[{sys.gettotalrefcount()} refs, {sys.getallocatedblocks()} blocks]\n")
0