All:
a = 1 b = a c = b
Now I want to get a list of object 1 tagged, which is [a, b, c]. How could I do this?
1
[a, b, c]
Look at pyjack. Its replace_all_refs function seems to work pretty well to replace all references to an object. Note: Doesn't work well with string objects.