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.

classification
Title: sys.getrefcount takes no arguments
Type: behavior Stage: resolved
Components: Cross-Build Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Ankoor Patil, berker.peksag
Priority: normal Keywords:

Created on 2015-08-02 05:17 by Ankoor Patil, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Capture.PNG Ankoor Patil, 2015-08-02 05:17
Messages (3)
msg247855 - (view) Author: Ankoor Patil (Ankoor Patil) Date: 2015-08-02 05:17
I have just started exploring python in rhino and I think I hit a bug, can you please confirm this or point out where am I going wrong.

Thanks.
msg247889 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2015-08-02 19:13
Thanks for the report. Some functions like getrefcount in sys module are specific to CPython. Other Python implementations like IronPython(it doesn't use reference counting for example) may not implement or partially implement those functions.

sys.getrefcount() works fine with CPython:

    >>> import sys
    >>> l = 5
    >>> sys.getrefcount(l)
    35
msg247977 - (view) Author: Ankoor Patil (Ankoor Patil) Date: 2015-08-04 03:08
Thanks Berker Peksag.
History
Date User Action Args
2022-04-11 14:58:19adminsetgithub: 68965
2015-08-04 03:08:21Ankoor Patilsetmessages: + msg247977
2015-08-02 19:13:41berker.peksagsetstatus: open -> closed

title: sys.getrefcount takes no arguments ?? -> sys.getrefcount takes no arguments
nosy: + berker.peksag

messages: + msg247889
resolution: not a bug
stage: resolved
2015-08-02 05:17:19Ankoor Patilcreate