251 Commits (2ec8063cc960d32e244dc6a27567f66a447bbda3)

Author SHA1 Message Date
Victor Stinner 2ec8063cc9 Modify _PyBytes_DecodeEscapeRecode() to use _PyBytesAPI 10 years ago
Victor Stinner f6358a7e4c _PyBytesWriter_Alloc(): only use 10 bytes of the small buffer in debug mode to 10 years ago
Victor Stinner 2bf8993db9 Optimize bytes.fromhex() and bytearray.fromhex() 10 years ago
Victor Stinner 772b2b09f2 Optimize bytearray % args 10 years ago
Victor Stinner 661aaccf9d Add use_bytearray attribute to _PyBytesWriter 10 years ago
Victor Stinner 03dab786b2 Rewrite PyBytes_FromFormatV() using _PyBytesWriter API 10 years ago
Victor Stinner e9aa5950bb Fix compilation error in _PyBytesWriter_WriteBytes() on Windows 10 years ago
Victor Stinner 6c2cdae9e6 Writer APIs: use empty string singletons 10 years ago
Victor Stinner c29e29bed1 Relax _PyBytesWriter API 10 years ago
Victor Stinner 0cdad1e2bc Issue #25349: Add fast path for b'%c' % int 10 years ago
Victor Stinner be75b8cf23 Issue #25349: Optimize bytes % int 10 years ago
Victor Stinner ce179bf6ba Add _PyBytesWriter_WriteBytes() to factorize the code 10 years ago
Victor Stinner ad7715891e _PyBytesWriter: simplify code to avoid "prealloc" parameters 10 years ago
Victor Stinner 53926a1ce2 _PyBytesWriter: rename size attribute to min_size 10 years ago
Victor Stinner fa7762ec06 Issue #25349: Optimize bytes % args using the new private _PyBytesWriter API 10 years ago
Victor Stinner b3653a3458 Issue #25318: cleanup code _PyBytesWriter 10 years ago
Victor Stinner b13b97d3b8 Issue #25318: Fix compilation error 10 years ago
Victor Stinner 0016507c16 Issue #25318: Move _PyBytesWriter to bytesobject.c 10 years ago
Serhiy Storchaka d92d4efe3d Issue #23573: Restored optimization of bytes.rfind() and bytearray.rfind() 11 years ago
Serhiy Storchaka fa494fd883 Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 11 years ago
Serhiy Storchaka 8b2e8b6cce Specify default values of semantic booleans in Argument Clinic generated signatures as booleans. 11 years ago
Gregory P. Smith 8cb6569fe1 Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview. 11 years ago
Christian Heimes 4e25913f9f Remove local dead code. In both blocks dir is always greater 0. 11 years ago
Larry Hastings 89964c48d1 Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. 11 years ago
Serhiy Storchaka 1009bf18b3 Issue #23501: Argumen Clinic now generates code into separate files by default. 11 years ago
Serhiy Storchaka 41525e31a5 Issue #23466: Raised OverflowError if %c argument is out of range. 11 years ago
Serhiy Storchaka 2c7b5a9d0d Issue #23466: %c, %o, %x, and %X in bytes formatting now raise TypeError on 11 years ago
Victor Stinner dabbfe7b30 Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows 11 years ago
Serhiy Storchaka d9d769fcdd Issue #23573: Increased performance of string search operations (str.find, 11 years ago
Serhiy Storchaka 1dd49824df Issue #23681: The -b option now affects comparisons of bytes with int. 11 years ago
Ethan Furman 62e977f1b6 Close issue23467: add %r compatibility to bytes and bytearray 11 years ago
Antoine Pitrou a654510150 Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. 11 years ago
Serhiy Storchaka 26861b0b29 Issue #23450: Fixed possible integer overflows. 11 years ago
Serhiy Storchaka ea5ce5a15e Issue #23383: Cleaned up bytes formatting. 11 years ago
Serhiy Storchaka 83848704f5 Issue #22896: Fixed using _getbuffer() in recently added _PyBytes_Format(). 11 years ago
Serhiy Storchaka 4fdb68491e Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer() 11 years ago
Victor Stinner 5474d0ba19 Issue #20284: Fix a compilation warning on Windows 11 years ago
Benjamin Peterson a8efc9601d ensure ilen is initialized when it is assigned to len 11 years ago
Ethan Furman b95b56150f Issue20284: Implement PEP461 11 years ago
Serhiy Storchaka 83cf99d733 Issue #20335: bytes constructor now raises TypeError when encoding or errors 11 years ago
Larry Hastings dfbeb160de Issue #22615: Argument Clinic now supports the "type" argument for the 11 years ago
R David Murray 861470c836 #16518: Bring error messages in harmony with docs ("bytes-like object") 11 years ago
Benjamin Peterson d48bc9468f these variables ought to be Py_ssize_t 11 years ago
Benjamin Peterson 42ff105539 fix overflow checking in PyBytes_Repr (closes #22519) 11 years ago
Serhiy Storchaka 20b39b27d9 Removed redundant casts to `char *`. 11 years ago
Serhiy Storchaka d8a1447c99 Issue #22215: Now ValueError is raised instead of TypeError when str or bytes 11 years ago
Victor Stinner 049e509a9f Issue #22207: Fix "comparison between signed and unsigned integers" warning in 12 years ago
Victor Stinner 88d146b7b9 Optimize PyBytes_FromObject(): only overallocate when size=0 to not get the 12 years ago
Terry Jan Reedy ffff1440d1 Issue #22077: Improve index error messages for bytearrays, bytes, lists, and 12 years ago
Martin v. Löwis 0efea322a9 Rerun AC, silence pointer conversion warnings. 12 years ago