mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	unicodeobject.c doesn't make output strings ready in debug mode
Try to only create non ready strings in debug mode to ensure that all functions (not only in unicodeobject.c, everywhere) make input strings ready.
This commit is contained in:
		
							parent
							
								
									55a190fbbd
								
							
						
					
					
						commit
						ce5faf673e
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -46,6 +46,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |||
| #include <windows.h> | ||||
| #endif | ||||
| 
 | ||||
| #ifdef Py_DEBUG | ||||
| #  define DONT_MAKE_RESULT_READY | ||||
| #endif | ||||
| 
 | ||||
| /* Limit for the Unicode object free list */ | ||||
| 
 | ||||
| #define PyUnicode_MAXFREELIST       1024 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner