mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			170 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			170 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| # http://python.org/sf/1202533
 | |
| 
 | |
| class A(str):
 | |
|     __get__ = getattr
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     a = A('a')
 | |
|     A.a = a
 | |
|     a.a   # segfault: infinite recursion in C
 | 
