Quick actions

cmd+k|ctrl+k

Navigation

Languages

refcount3

Snippet info

Language

Python

Visibility

public

Author

mori

Created

2019-05-28T23:50:53Z

Updated

2019-05-28T23:50:53Z

import sys

print(sys.getrefcount(1000))
x = 1000
print(sys.getrefcount(1000))

x = x + 1
print(sys.getrefcount(1000))
INFO