mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			203 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			203 B
		
	
	
	
		
			Python
		
	
	
	
	
	
 | 
						|
# http://python.org/sf/1202533
 | 
						|
 | 
						|
import new, operator
 | 
						|
 | 
						|
class A:
 | 
						|
    pass
 | 
						|
A.__mul__ = new.instancemethod(operator.mul, None, A)
 | 
						|
 | 
						|
if __name__ == '__main__':
 | 
						|
    A()*2   # segfault: infinite recursion in C
 |