1095 Commits (3572842c19a8ddf1dde2162fee3c7a8a0ce9979b)

Author SHA1 Message Date
Ethan Furman fb13721b1b Close #18780: %-formatting now prints value for int subclasses with %d, %i, and %u codes. 13 years ago
Antoine Pitrou 9ed5f27266 Issue #18722: Remove uses of the "register" keyword in C code. 13 years ago
Raymond Hettinger e56666d17f Silence compiler warning about an uninitialized variable 13 years ago
Christian Heimes 26532f7519 Check return value of PyType_Ready(&EncodingMapType) 13 years ago
Victor Stinner e699e5a218 Issue #18408: Don't check unicode consistency in _PyUnicode_HAS_UTF8_MEMORY() 13 years ago
Victor Stinner 9e6b4d715c Issue #18408: _PyUnicodeWriter_Finish() now clears its buffer attribute in all 13 years ago
Victor Stinner 15a0bd3965 Issue #18408: Fix _PyUnicodeWriter_Finish(): clear writer->buffer, 13 years ago
Victor Stinner 6f8eeee7b9 Issue #18203: Fix _Py_DecodeUTF8_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar() 13 years ago
Victor Stinner 1a7425f67a Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization 13 years ago
Christian Heimes d47802eef7 Fix ref leak in error case of unicode find, count, formatlong 13 years ago
Christian Heimes d47a0456b1 Fix ref leak in error case of unicode index 13 years ago
Christian Heimes ea71a525c3 Fix ref leak in error case of unicode rindex and rfind 13 years ago
Christian Heimes 305e49e17e Fix memory leak in endswith 13 years ago
Serhiy Storchaka 8eeae2126c Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise 13 years ago
Benjamin Peterson 7e30373126 remove MAX_MAXCHAR because it's unsafe for computing maximum codepoitn value (see #18183) 13 years ago
Victor Stinner 9f067f490f Issue #9566: Fix compiler warning on Windows 64-bit 13 years ago
Antoine Pitrou 8b0e98426d Issue #17237: Fix crash in the ASCII decoder on m68k. 13 years ago
Victor Stinner f4f24248dc Fix uninitialized value in charmap_decode_mapping() 13 years ago
Victor Stinner 8cecc8c262 Issue #7330: Implement width and precision (ex: "%5.3s") for the format string 13 years ago
Victor Stinner bb4503f61e Partial revert of changeset 9744b2df134c 13 years ago
Victor Stinner fb161b1b6d Split PyUnicode_DecodeCharmap() into subfunction for readability 13 years ago
Victor Stinner 170ca6f84b Fix bug in Unicode decoders related to _PyUnicodeWriter 13 years ago
Victor Stinner 376cfa122d Fix typo in unicode_decode_call_errorhandler_writer() 13 years ago
Victor Stinner 8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter 13 years ago
Victor Stinner 77282cb4f8 Cleanup PyUnicode_Contains() 13 years ago
Victor Stinner d92e078c8d Minor change: fix character in do_strip() for the ASCII case 13 years ago
Victor Stinner f033510fee Cleanup PyUnicode_Append() 13 years ago
Victor Stinner 4560f9c63f PyUnicode_Join(): move use_memcpy test out of the loop to cleanup and optimize the code 13 years ago
Victor Stinner 55c08781e8 Optimize repr(str): use _PyUnicode_FastCopyCharacters() when no character is escaped 13 years ago
Victor Stinner af03757d20 Optimize ascii(str): don't encode/decode repr if repr is already ASCII 13 years ago
Victor Stinner 8a1a6cffd6 Add _PyUnicodeWriter_WriteCharInline() 13 years ago
Serhiy Storchaka e2cef885a2 Issue #16061: Speed up str.replace() for replacing 1-character strings. 13 years ago
Victor Stinner a0dd0213cc Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead of 13 years ago
Victor Stinner 247109e74d Issue #17615: On Windows (VS2010), Performances of wmemcmp() to compare Unicode 13 years ago
Victor Stinner 0cff4b16d9 replace(): only call PyUnicode_DATA(u) once 13 years ago
Victor Stinner cc7af72192 Write super-fast version of str.strip(), str.lstrip() and str.rstrip() for pure ASCII 13 years ago
Victor Stinner f50a4e9bc9 Don't calls macros in PyUnicode_WRITE() parameters 13 years ago
Victor Stinner 9c79e41fc5 Fix do_strip(): don't call PyUnicode_READ() in Py_UNICODE_ISSPACE() to not call 13 years ago
Victor Stinner b3a6014504 Fix _PyUnicode_XStrip() 13 years ago
Victor Stinner 63d5c1a14a Optimize PyUnicode_DecodeCharmap() 13 years ago
Victor Stinner a85af502a4 Optimize make_bloom_mask(), used by str.strip(), str.lstrip() and str.rstrip() 13 years ago
Victor Stinner 69ed0f4c86 Use PyUnicode_READ() instead of PyUnicode_READ_CHAR() 13 years ago
Victor Stinner 03c3e35d42 Add fast-path in PyUnicode_DecodeCharmap() for pure 8 bit encodings: 13 years ago
Victor Stinner cd777eaf53 Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible 13 years ago
Victor Stinner c1302bba4c Issue #17615: Expand expensive PyUnicode_READ() macro in unicode_compare(): 13 years ago
Victor Stinner 207dd38726 fix unused variable 13 years ago
Victor Stinner eb4b5ac8af Close #16757: Avoid calling the expensive _PyUnicode_FindMaxChar() function 13 years ago
Victor Stinner cfc4c13b04 Add _PyUnicodeWriter_WriteSubstring() function 13 years ago
Benjamin Peterson da2c7ebd23 allow any type with __getitem__ to be a mapping for the purposes of % (#15801) 13 years ago
Raymond Hettinger 378170d5d9 Issue 17447: Clarify that str.isidentifier doesn't check for reserved keywords. 13 years ago