# Pastebin oqUglnMf def foo(): class A: pass a_l = [A()] return gc.get_referrers(a_l.pop())