STINNER Victor <vstin...@python.org> added the comment:

> 1. Run python
> 2. Ctrl + D

It seems like this scenario has recently been fixed in bpo-1635741:

$ ./python -I -X showrefcount 
Python 3.11.0a4+ (heads/main:18ea973c21, Jan 28 2022, 01:38:10) [GCC 11.2.1 
20211203 (Red Hat 11.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[-4 refs, 1 blocks]

If you still see memory leaks in Python 3.11, please better describe what you 
do to "Run python" and open a new issue ;-)

----------
nosy: +vstinner
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Py_Finalize() doesn't clear all Python objects at exit

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to