Julien Palard <julien+pyt...@palard.fr> added the comment:

Since 
https://github.com/python/cpython/commit/121f1f893a39d0b58d3d2b5597505c154ecaac2a,
 `sys.getrefcount(1)` is surprising:

    >>> __import__("sys").getrefcount(1)
    1000000210

Should sys.getrefcount try to "fix" the value like by returning 
`PyREFCNT(object) % 999999999`? (But using a define to avoid the "magic, 
copy/pasted value").

----------
nosy: +mdk

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

Reply via email to