mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Don't intern the filename of a file being compiled.
Hard to believe it ever helped anything, and it hurts finding reference leaks.
This commit is contained in:
		
							parent
							
								
									3f3b66823f
								
							
						
					
					
						commit
						782d8ffb42
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -4731,7 +4731,7 @@ jcompile(node *n, const char *filename, struct compiling *base, | |||
| 		cellvars = dict_keys_inorder(sc.c_cellvars, 0); | ||||
| 		freevars = dict_keys_inorder(sc.c_freevars, | ||||
| 					     PyTuple_GET_SIZE(cellvars)); | ||||
| 		filename = PyString_InternFromString(sc.c_filename); | ||||
| 		filename = PyString_FromString(sc.c_filename); | ||||
| 		name = PyString_InternFromString(sc.c_name); | ||||
| 		if (!PyErr_Occurred()) | ||||
| 			co = PyCode_New(sc.c_argcount, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Michael W. Hudson
						Michael W. Hudson