This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdk
Recipients Mark.Shannon, brandtbucher, eric.snow, gvanrossum, mdk, miss-islington, vstinner
Date 2022-03-28.11:25:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648466723.02.0.471553697981.issue45953@roundup.psfhosted.org>
In-reply-to
Content
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").
History
Date User Action Args
2022-03-28 11:25:23mdksetrecipients: + mdk, gvanrossum, vstinner, Mark.Shannon, eric.snow, miss-islington, brandtbucher
2022-03-28 11:25:23mdksetmessageid: <1648466723.02.0.471553697981.issue45953@roundup.psfhosted.org>
2022-03-28 11:25:23mdklinkissue45953 messages
2022-03-28 11:25:22mdkcreate