Created
January 28, 2015 07:59
-
-
Save kaiix/8df689c6629679ff5cab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://blog.hakril.net/articles/0-understanding-python-by-breaking-it.html | |
| def get_ref(obj): | |
| """ returns a c_size_t, which is the refcount of obj """ | |
| return ctypes.c_size_t.from_address(id(obj)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment