##// END OF EJS Templates
Backport PR #7933: Move dynamic buttons to the left and upload button to the right....
Backport PR #7933: Move dynamic buttons to the left and upload button to the right. Requested by @ellisonbg . Before: ![old](https://cloud.githubusercontent.com/assets/3292874/6454809/aa541ee4-c101-11e4-979f-707df477cdc2.PNG) ...

File last commit:

r13379:974fa61b
r20875:8a947555
Show More
show_refs.py
20 lines | 393 B | text/x-python | PythonLexer
"""Simple script to show reference holding behavior.
This is used by a companion test case.
"""
from __future__ import print_function
import gc
class C(object):
def __del__(self):
pass
#print 'deleting object...' # dbg
if __name__ == '__main__':
c = C()
c_refs = gc.get_referrers(c)
ref_ids = list(map(id,c_refs))
print('c referrers:',list(map(type,c_refs)))