mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #19512: add some common identifiers to only create common strings once,
instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter.
This commit is contained in:
		
							parent
							
								
									bb52020d44
								
							
						
					
					
						commit
						090543736f
					
				
					 13 changed files with 72 additions and 49 deletions
				
			
		| 
						 | 
				
			
			@ -169,7 +169,7 @@ _Py_FindSourceFile(PyObject *filename, char* namebuf, size_t namelen, PyObject *
 | 
			
		|||
        tail++;
 | 
			
		||||
    taillen = strlen(tail);
 | 
			
		||||
 | 
			
		||||
    syspath = PySys_GetObject("path");
 | 
			
		||||
    syspath = _PySys_GetObjectId(&_PyId_path);
 | 
			
		||||
    if (syspath == NULL || !PyList_Check(syspath))
 | 
			
		||||
        goto error;
 | 
			
		||||
    npath = PyList_Size(syspath);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue