You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							46 lines
						
					
					
						
							619 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							46 lines
						
					
					
						
							619 B
						
					
					
				
								from __future__ import print_function
							 | 
						|
								import sys
							 | 
						|
								import gc
							 | 
						|
								sys.path.append('.')
							 | 
						|
								
							 | 
						|
								from example import Parent, Child
							 | 
						|
								
							 | 
						|
								if True:
							 | 
						|
								    p = Parent()
							 | 
						|
								    p.addChild(Child())
							 | 
						|
								    gc.collect()
							 | 
						|
								    print(p)
							 | 
						|
								    p = None
							 | 
						|
								
							 | 
						|
								gc.collect()
							 | 
						|
								print("")
							 | 
						|
								
							 | 
						|
								if True:
							 | 
						|
								    p = Parent()
							 | 
						|
								    p.returnChild()
							 | 
						|
								    gc.collect()
							 | 
						|
								    print(p)
							 | 
						|
								    p = None
							 | 
						|
								
							 | 
						|
								gc.collect()
							 | 
						|
								print("")
							 | 
						|
								
							 | 
						|
								if True:
							 | 
						|
								    p = Parent()
							 | 
						|
								    p.addChildKeepAlive(Child())
							 | 
						|
								    gc.collect()
							 | 
						|
								    print(p)
							 | 
						|
								    p = None
							 | 
						|
								gc.collect()
							 | 
						|
								print("")
							 | 
						|
								
							 | 
						|
								if True:
							 | 
						|
								    p = Parent()
							 | 
						|
								    p.returnChildKeepAlive()
							 | 
						|
								    gc.collect()
							 | 
						|
								    print(p)
							 | 
						|
								    p = None
							 | 
						|
								
							 | 
						|
								gc.collect()
							 | 
						|
								print("")
							 | 
						|
								print("Terminating..")
							 |