bpo-44895: Introduce PYTHONDUMPREFSFILE variable for refcount dumping (GH-27767)

This commit is contained in:
Dong-hee Na 2021-08-17 15:52:50 +00:00 • committed by GitHub
parent 96346cb6d0
commit c2c857b40f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 0 deletions

View file

@ -975,3 +975,12 @@ Debug-mode variables
shutting down the interpreter.
Need Python configured with the :option:`--with-trace-refs` build option.
.. envvar:: PYTHONDUMPREFSFILE=FILENAME
If set, Python will dump objects and reference counts still alive
after shutting down the interpreter into a file called *FILENAME*.
Need Python configured with the :option:`--with-trace-refs` build option.
.. versionadded:: 3.11