Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								9f43505f3d 
								
							 
						 
						
							
							
								
								(Merge 3.4)  Closes   #21892 ,  #21893 : Use PY_FORMAT_SIZE_T instead of %zi or %zu  
							
							... 
							
							
							
							to format C size_t, because %zi/%u is not supported on all platforms. 
							
						 
						
							2014-07-01 08:57:54 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								4dd25256e2 
								
							 
						 
						
							
							
								
								Issue  #21118 : PyLong_AS_LONG() result type is long  
							
							... 
							
							
							
							Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type. 
							
						 
						
							2014-04-08 09:14:21 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Benjamin Peterson 
								
							 
						 
						
							
							
							
							
								
							
							
								1365de764e 
								
							 
						 
						
							
							
								
								fix reference leaks in the translate fast path ( closes   #21175 )  
							
							... 
							
							
							
							Patch by Josh Rosenberg. 
							
						 
						
							2014-04-07 20:15:41 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								872b291b96 
								
							 
						 
						
							
							
								
								Issue  #21118 : Optimize also str.translate() for ASCII => ASCII deletion  
							
							
							
						 
						
							2014-04-05 14:27:07 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								4ff33af257 
								
							 
						 
						
							
							
								
								Issue  #21118 : Add unit test for invalid character replacement (code point higher than U+10ffff)  
							
							
							
						 
						
							2014-04-05 11:56:37 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								89a76abf20 
								
							 
						 
						
							
							
								
								Issue  #21118 : Optimize str.translate() for ASCII => ASCII translation  
							
							
							
						 
						
							2014-04-05 11:44:04 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								8a4422e78d 
								
							 
						 
						
							
							
								
								Issue  #21118 : Remove unused variable  
							
							
							
						 
						
							2014-04-05 00:15:52 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								1194ea020c 
								
							 
						 
						
							
							
								
								Issue  #21118 : Use _PyUnicodeWriter API in str.translate() to simplify and  
							
							... 
							
							
							
							factorize the code 
							
						 
						
							2014-04-04 19:37:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ethan Furman 
								
							 
						 
						
							
							
							
							
								
							
							
								9ab748013b 
								
							 
						 
						
							
							
								
								Issue19995: more informative error message; spelling corrections; use operator.mod instead of __mod__  
							
							
							
						 
						
							2014-03-21 06:38:46 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ethan Furman 
								
							 
						 
						
							
							
							
							
								
							
							
								38d872ee5d 
								
							 
						 
						
							
							
								
								Issue19995: passing a non-int to %o, %c, %x, or %X now raises an exception  
							
							
							
						 
						
							2014-03-19 08:38:52 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								7d00cc1a64 
								
							 
						 
						
							
							
								
								Issue  #20574 : Implement incremental decoder for cp65001 code  
							
							... 
							
							
							
							(Windows code page 65001, Microsoft UTF-8). 
							
						 
						
							2014-03-17 23:08:06 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								4ead7c7be8 
								
							 
						 
						
							
							
								
								PyObject_Str() ensures that the result string is ready  
							
							... 
							
							
							
							and check the string consistency.
_PyUnicode_CheckConsistency() doesn't check the hash anymore. It should be
possible to call this function even if hash(str) was already called. 
							
						 
						
							2011-11-20 19:48:36 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								b960b34577 
								
							 
						 
						
							
							
								
								PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),  
							
							... 
							
							
							
							instead of calling the deprecated PyUnicode_EncodeUTF32() function 
							
						 
						
							2011-11-20 19:12:52 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								77faf69ca1 
								
							 
						 
						
							
							
								
								_PyUnicode_CheckConsistency() also checks maxchar maximum value,  
							
							... 
							
							
							
							not only its minimum value 
							
						 
						
							2011-11-20 18:56:05 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								d5c4022d2a 
								
							 
						 
						
							
							
								
								Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros  
							
							
							
						 
						
							2011-11-20 18:41:31 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								2e9cfadd7c 
								
							 
						 
						
							
							
								
								Reuse surrogate macros in UTF-16 decoder  
							
							
							
						 
						
							2011-11-20 18:40:27 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								ae4f7c8e59 
								
							 
						 
						
							
							
								
								charmap_encoding_error() uses the new Unicode API  
							
							
							
						 
						
							2011-11-20 18:28:55 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								ac931b1e5b 
								
							 
						 
						
							
							
								
								Use PyUnicode_EncodeCodePage() instead of PyUnicode_EncodeMBCS() with  
							
							... 
							
							
							
							PyUnicode_AsUnicodeAndSize() 
							
						 
						
							2011-11-20 18:27:03 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								22168998f5 
								
							 
						 
						
							
							
								
								charmap encoders uses Py_UCS4, not Py_UNICODE  
							
							
							
						 
						
							2011-11-20 17:09:18 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								1f7951711c 
								
							 
						 
						
							
							
								
								Catch PyUnicode_AS_UNICODE() errors  
							
							
							
						 
						
							2011-11-17 00:45:54 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Ezio Melotti 
								
							 
						 
						
							
							
							
							
								
							
							
								11060a4a48 
								
							 
						 
						
							
							
								
								#13406 : silence deprecation warnings in test_codecs.  
							
							
							
						 
						
							2011-11-16 09:39:10 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								78edf7576e 
								
							 
						 
						
							
							
								
								Issue  #13333 : The UTF-7 decoder now accepts lone surrogates  
							
							... 
							
							
							
							(the encoder already accepts them). 
							
						 
						
							2011-11-15 01:44:16 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								5418ee0b9a 
								
							 
						 
						
							
							
								
								Issue  #13333 : The UTF-7 decoder now accepts lone surrogates  
							
							... 
							
							
							
							(the encoder already accepts them). 
							
						 
						
							2011-11-15 01:42:21 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								31b92a534f 
								
							 
						 
						
							
							
								
								Sanitize reference management in the utf-8 encoder  
							
							
							
						 
						
							2011-11-12 18:35:19 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								0290c7a811 
								
							 
						 
						
							
							
								
								Fix regression on 2-byte wchar_t systems (Windows)  
							
							
							
						 
						
							2011-11-11 13:29:12 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								44c6affc79 
								
							 
						 
						
							
							
								
								Avoid crashing because of an unaligned word access  
							
							
							
						 
						
							2011-11-11 02:59:42 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								de20b0b50e 
								
							 
						 
						
							
							
								
								Issue  #13149 : Speed up append-only StringIO objects.  
							
							... 
							
							
							
							This is very similar to the "lazy strings" idea. 
							
						 
						
							2011-11-10 21:47:38 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								9f4b1e9c50 
								
							 
						 
						
							
							
								
								Fix and deprecated the unicode_internal codec  
							
							... 
							
							
							
							unicode_internal codec uses Py_UNICODE instead of the real internal
representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward
compatibility. 
							
						 
						
							2011-11-10 20:56:30 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								24729f36bf 
								
							 
						 
						
							
							
								
								Prefer Py_UCS4 or wchar_t over Py_UNICODE  
							
							
							
						 
						
							2011-11-10 20:31:37 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								ebf3ba808e 
								
							 
						 
						
							
							
								
								PyUnicode_DecodeCharmap() uses the new Unicode API  
							
							
							
						 
						
							2011-11-10 20:30:22 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								a98b28c1bf 
								
							 
						 
						
							
							
								
								Avoid PyUnicode_AS_UNICODE in the UTF-8 encoder  
							
							
							
						 
						
							2011-11-10 20:21:49 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								3326cb6a36 
								
							 
						 
						
							
							
								
								Fix "unicode_escape" encoder  
							
							
							
						 
						
							2011-11-10 20:15:25 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								0e36826a04 
								
							 
						 
						
							
							
								
								Fix UTF-7 encoder on Windows  
							
							
							
						 
						
							2011-11-10 20:12:49 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Martin v. Löwis 
								
							 
						 
						
							
							
							
							
								
							
							
								1db7c13be1 
								
							 
						 
						
							
							
								
								Port encoders from Py_UNICODE API to unicode object API.  
							
							
							
						 
						
							2011-11-10 18:24:32 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								62aa4d086a 
								
							 
						 
						
							
							
								
								Strip trailing spaces  
							
							
							
						 
						
							2011-11-09 00:03:45 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								0a045efb49 
								
							 
						 
						
							
							
								
								Fix a compiler warning: use unsiged for maxchar in unicode_widen()  
							
							
							
						 
						
							2011-11-09 00:02:42 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								596a6c4ffc 
								
							 
						 
						
							
							
								
								Fix the code page decoder  
							
							... 
							
							
							
							* unicode_decode_call_errorhandler() now supports the PyUnicode_WCHAR_KIND
   kind
 * unicode_decode_call_errorhandler() calls copy_characters() instead of
   PyUnicode_CopyCharacters() 
							
						 
						
							2011-11-09 00:02:18 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Antoine Pitrou 
								
							 
						 
						
							
							
							
							
								
							
							
								a8f63c02ef 
								
							 
						 
						
							
							
								
								Fix missing goto  
							
							
							
						 
						
							2011-11-08 18:37:16 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Martin v. Löwis 
								
							 
						 
						
							
							
							
							
								
							
							
								d10759f6ed 
								
							 
						 
						
							
							
								
								Make _PyUnicode_FromId return borrowed references.  
							
							... 
							
							
							
							http://mail.python.org/pipermail/python-dev/2011-November/114347.html  
						
							2011-11-07 13:00:05 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Martin v. Löwis 
								
							 
						 
						
							
							
							
							
								
							
							
								e9b11c1cd8 
								
							 
						 
						
							
							
								
								Change decoders to use Unicode API instead of Py_UNICODE.  
							
							
							
						 
						
							2011-11-08 17:35:34 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								e30c0a1014 
								
							 
						 
						
							
							
								
								Fix gdb/libpython.py for not ready Unicode strings  
							
							... 
							
							
							
							_PyUnicode_CheckConsistency() checks also hash and length value for not ready
Unicode strings. 
							
						 
						
							2011-11-04 20:54:05 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								2fc507fe45 
								
							 
						 
						
							
							
								
								Replace tabs by spaces  
							
							
							
						 
						
							2011-11-04 20:06:39 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Martin v. Löwis 
								
							 
						 
						
							
							
							
							
								
							
							
								12be46ca84 
								
							 
						 
						
							
							
								
								Drop Py_UNICODE based encode exceptions.  
							
							
							
						 
						
							2011-11-04 19:04:15 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Martin v. Löwis 
								
							 
						 
						
							
							
							
							
								
							
							
								3d325191bf 
								
							 
						 
						
							
							
								
								Port code page codec to Unicode API.  
							
							
							
						 
						
							2011-11-04 18:23:06 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								fcd9653667 
								
							 
						 
						
							
							
								
								Fix a compiler warning in unicode_encode_ucs1()  
							
							
							
						 
						
							2011-11-04 00:28:50 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								fc026c98d8 
								
							 
						 
						
							
							
								
								Fix PyUnicode_EncodeCharmap()  
							
							
							
						 
						
							2011-11-04 00:24:51 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								7931d9a951 
								
							 
						 
						
							
							
								
								Replace PyUnicodeObject type by PyObject  
							
							... 
							
							
							
							* _PyUnicode_CheckConsistency() now takes a PyObject* instead of void*
 * Remove now useless casts to PyObject* 
							
						 
						
							2011-11-04 00:22:48 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								76a31a6bff 
								
							 
						 
						
							
							
								
								Cleanup decode_code_page_stateful() and encode_code_page()  
							
							... 
							
							
							
							* Fix decode_code_page_errors() result
 * Inline decode_code_page() and encode_code_page_chunk()
 * Replace the PyUnicodeObject type by PyObject 
							
						 
						
							2011-11-04 00:05:13 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Victor Stinner 
								
							 
						 
						
							
							
							
							
								
							
							
								7581cef699 
								
							 
						 
						
							
							
								
								Adapt the code page encoder to the new unicode_encode_call_errorhandler()  
							
							... 
							
							
							
							The code is not correct, but at least it doesn't crash anymore. 
							
						 
						
							2011-11-03 22:32:33 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Brian Curtin 
								
							 
						 
						
							
							
							
							
								
							
							
								2787ea41fd 
								
							 
						 
						
							
							
								
								Fix a compile error (apparently Windows only) introduced in 295fdfd4f422  
							
							
							
						 
						
							2011-11-02 15:09:37 -05:00