mirror of
				https://github.com/python/cpython.git
				synced 2025-10-26 11:14:33 +00:00 
			
		
		
		
	 be19ed77dd
			
		
	
	
		be19ed77dd
		
	
	
	
	
		
			
			There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			122 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			122 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """This is a test"""
 | |
| 
 | |
| from __future__ import *
 | |
| 
 | |
| def f(x):
 | |
|     def g(y):
 | |
|         return x + y
 | |
|     return g
 | |
| 
 | |
| print(f(2)(4))
 |