mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
This commit is contained in:
		
						commit
						fb84b5d48d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -12821,7 +12821,7 @@ _PyUnicodeWriter_Finish(_PyUnicodeWriter *writer) | |||
|         writer->buffer = newbuffer; | ||||
|     } | ||||
|     assert(_PyUnicode_CheckConsistency(writer->buffer, 1)); | ||||
|     return writer->buffer; | ||||
|     return unicode_result_ready(writer->buffer); | ||||
| } | ||||
| 
 | ||||
| void | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner