Pablo Galindo Salgado <pablog...@gmail.com> added the comment:

There are several problems with this change:

1) The lifetime of the file descriptor. The file descriptor is borrowed, which 
normally will lead to not being properly cleaned upon failure or interpreter 
deallocation.

2) The statistics you are trying to fetch via parsing the file are actually 
available through better APIS:

https://docs.python.org/3/library/gc.html#gc.callbacks
and
https://docs.python.org/3/library/gc.html#gc.get_stats

3) The stderr output is not stable or considered to be stable between releases. 
The main purpose is to serve as a quick way to debug or check for statistics 
without using proper callbacks, but enything more involved needs to use the 
callbacks.

Based on these, I am afraid I don't feel comfortable supporting this patch :(

----------

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

Reply via email to