Skip to content

Instantly share code, notes, and snippets.

@ishashankkumar
Created November 15, 2019 10:03
Show Gist options
  • Save ishashankkumar/d292233051df74ee6f6f3f9d204f185f to your computer and use it in GitHub Desktop.
Save ishashankkumar/d292233051df74ee6f6f3f9d204f185f to your computer and use it in GitHub Desktop.
>>> a = 593
>>> sys.getrefcount(a)
2
>>> c=a
>>> sys.getrefcount(a)
3
>>> d=a
>>> sys.getrefcount(a)
4
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment