4394 Commits (76df43de30f40b5cc1de9d36a5a083dd8bd8cb27)

Author SHA1 Message Date
Victor Stinner 76df43de30 Issue #16330: Use surrogate-related macros 14 years ago
Mark Dickinson fb90c0934c Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. 14 years ago
Victor Stinner c6cf1ba29e Replace usage of the deprecated Py_UNICODE_COPY() with Py_MEMCPY() in resize_copy() 14 years ago
Victor Stinner fe75fb4b3e Optimize _PyUnicode_HasNULChars(): use findchar() instead of PyUnicode_Contains() 14 years ago
Victor Stinner 6fa627578a Inline raise_translate_exception(): it is only used once 14 years ago
Victor Stinner e5567ad236 Optimize PyUnicode_RichCompare() for Py_EQ and Py_NE: always use memcmp() 14 years ago
Antoine Pitrou 6f7b0da6bc Issue #12805: Make bytes.join and bytearray.join faster when the separator is empty. 14 years ago
Mark Dickinson e453e4c007 Issue 16280: Drop questionable special-casing of null pointer in PyLong_FromVoidPtr. 14 years ago
Mark Dickinson 91044799f7 Issue #16277: in PyLong_FromVoidPtr, add missing branch for sizeof(void*) <= sizeof(long). 14 years ago
Christian Heimes 743e0cd6b5 Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified 14 years ago
Eric Snow 547298c94c Close #16160: Subclass support now works for types.SimpleNamespace. Thanks to RDM for noticing. 14 years ago
Antoine Pitrou cfc22b4a9b Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. 14 years ago
Chris Jerdonek 83fe2e1c22 Issue #14783: Improve int() docstring and also str(), range(), and slice(). 14 years ago
Armin Ronacher 74b38b190f Issue #16148: Small improvements and cleanup. Added version information 14 years ago
Victor Stinner 4c63a972d1 Cleanup PyUnicode_FromFormatV() for zero padding 14 years ago
Victor Stinner 15a1136547 Issue #16147: PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer 14 years ago
Victor Stinner ff5a848db5 Issue #16147: PyUnicode_FromFormatV() now raises an error if the argument of 14 years ago
Victor Stinner 3921e90c5a Issue #16147: PyUnicode_FromFormatV() now detects integer overflow when parsing 14 years ago
Victor Stinner e215d960be Issue #16147: Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API 14 years ago
Mark Dickinson fc9adb62fb Issue #16096: Fix signed overflow in Objects/longobject.c. Thanks Serhiy Storchaka. 14 years ago
Mark Dickinson c04ddff290 Issue #16096: Fix several occurrences of potential signed integer overflow. Thanks Serhiy Storchaka. 14 years ago
Christian Heimes b70e8a1958 and another one 14 years ago
Christian Heimes 6314d164c9 move var declaration to top of block to fix compilation on Windows, fixes a7ec0a1b0f7c 14 years ago
Armin Ronacher 23c5bb4030 Fixed a missing incref introduced by a7ec0a1b0f7c 14 years ago
Armin Ronacher 226b1db0e2 Added notimplemented_dealloc for better error reporting 14 years ago
Armin Ronacher aa9a79d279 Issue #16148: implemented PEP 424 14 years ago
Victor Stinner 8c6db45d3e In debug mode, unicode_write_cstr() now checks that non-ASCII characters are 14 years ago
Ezio Melotti e7f90375b1 #16127: remove outdated references to narrow builds. Patch by Serhiy Storchaka. 14 years ago
Victor Stinner 1929407406 Fix PyUnicode_Format(): return NULL if PyUnicode_READY(uformat) failed 14 years ago
Victor Stinner 770e19e0cc Optimize unicode_compare(): use memcmp() when comparing two UCS1 strings 14 years ago
Victor Stinner 90db9c47dc Enable also ptr==ptr optimization in PyUnicode_Compare() 14 years ago
Victor Stinner 9cc98c93a7 long_to_decimal_string_internal() doesn't need to write the final NULL character 14 years ago
Victor Stinner aa7712711d unicode_result_wchar(): move the assert() to the "#ifdef Py_DEBUG" block 14 years ago
Victor Stinner a4708231e6 Split the huge PyUnicode_Format() function (+540 lines) into subfunctions 14 years ago
Victor Stinner a049443fab PyUnicode_Format(): disable overallocation when we are writing the last part 14 years ago
Victor Stinner afffce489b Unicode: resize_compact() and resize_inplace() fills also the Unicode strings 14 years ago
Victor Stinner c89d28fdfc Issue #15609: Fix refleak introduced by my last optimization 14 years ago
Victor Stinner 621ef3d84f Issue #15609: Optimize str%args for integer argument 14 years ago
Benjamin Peterson b8350f1c7d upgrade to UCD 6.2 14 years ago
Ezio Melotti 0e1af282b8 Fix typo. 14 years ago
Mark Dickinson 3d7838593b Issue #16060: Fix a double DECREF in int() implementation. Thanks Serhiy Storchaka. 14 years ago
Mark Dickinson 7c95bb35e4 Issue #16060: Fix a double DECREF in int() implementation. Thanks Serhiy Storchaka. 14 years ago
Antoine Pitrou 6f80f5d444 Issue #15379: Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings). 14 years ago
Mark Dickinson c286e58044 Issue 15959: Fix type mismatch for quick{_neg}_int_allocs. Thanks Serhiy Storchaka. 14 years ago
Antoine Pitrou ca8aa4acf6 Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 14 years ago
Trent Nelson ab02db23b1 Silence compiler warnings on Solaris 10 via explicit (void *) casts. 14 years ago
Christian Heimes 79b97ee2ab Fix out of bounds read in long_new() for empty bytes with an explicit base. int(b'', somebase) calls PyLong_FromString() with char* of length 1 but the function accesses the first argument at offset 1. CID 715359 14 years ago
Christian Heimes 5f520f4fed Issue #15900: Fixed reference leak in PyUnicode_TranslateCharmap() 14 years ago
Christian Heimes e81dc296f2 Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371 14 years ago
Christian Heimes fd30236494 Fixed memory leak in error branch of formatfloat(). CID 719687 14 years ago