Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: Find the Reference Count Using the sys Module

Python: Find the Reference Count Using the sys Module
{filelink=16862}

import sys
var1 = 1234
var2='sakoba'
print sys.getrefcount(0)
print sys.getrefcount(var1)
print sys.getrefcount(None)
print sys.getrefcount(var2)

No comments yet.

Leave a Comment