##// END OF EJS Templates
SUB channel _handle_recv is now greedy....
SUB channel _handle_recv is now greedy. This change is needed so that a single ioloop iteration will handle all of the messages that have been received. Otherwise the ioloop has to run multiple time to get everything.

File last commit:

r2109:93b5c4cd
r2694:3ed0a1d7
Show More
show_refs.py
19 lines | 342 B | text/x-python | PythonLexer
"""Simple script to show reference holding behavior.
This is used by a companion test case.
"""
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 = map(id,c_refs)
print 'c referrers:',map(type,c_refs)