Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Issue #25766: Special method __bytes__() now works in str subclasses. | Serhiy Storchaka | 2015-12-20 | 1 | -0/+6 | |
|\ \ | |/ | ||||||
| * | Issue #25766: Special method __bytes__() now works in str subclasses. | Serhiy Storchaka | 2015-12-20 | 1 | -0/+6 | |
| | | ||||||
* | | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -0/+11 | |
|\ \ | |/ | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | |||||
| * | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -0/+11 | |
| |\ | | | | | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | |||||
| | * | Issue #24731: Fixed crash on converting objects with special methods | Serhiy Storchaka | 2015-11-25 | 1 | -0/+11 | |
| | | | | | | | | | | | | | | | __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. | |||||
* | | | test_bytes: new try to fix test on '%p' formatter on Windows | Victor Stinner | 2015-10-14 | 1 | -6/+16 | |
| | | | ||||||
* | | | Optimize bytes.fromhex() and bytearray.fromhex() | Victor Stinner | 2015-10-14 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #25401: Optimize bytes.fromhex() and bytearray.fromhex(): they are now between 2x and 3.5x faster. Changes: * Use a fast-path working on a char* string for ASCII string * Use a slow-path for non-ASCII string * Replace slow hex_digit_to_int() function with a O(1) lookup in _PyLong_DigitValue precomputed table * Use _PyBytesWriter API to handle the buffer * Add unit tests to check the error position in error messages | |||||
* | | | Fix test_bytes on Windows | Victor Stinner | 2015-10-14 | 1 | -4/+7 | |
| | | | | | | | | | | | | | | | On Windows, sprintf("%p", 0xabcdef) formats hexadecimal in uppercase and pad to 16 characters (on 64-bit system) with zeros. | |||||
* | | | Rewrite PyBytes_FromFormatV() using _PyBytesWriter API | Victor Stinner | 2015-10-13 | 1 | -12/+80 | |
|/ / | | | | | | | | | | | | | * Add much more unit tests on PyBytes_FromFormatV() * Remove the first loop to compute the length of the output string * Use _PyBytesWriter to handle the bytes buffer, use overallocation * Cleanup the code to make simpler and easier to review | |||||
* | | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray | Serhiy Storchaka | 2015-06-29 | 1 | -1/+18 | |
|\ \ | |/ | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated. | |||||
| * | Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray | Serhiy Storchaka | 2015-06-29 | 1 | -1/+18 | |
| | | | | | | | | | | object now always allocates place for trailing null byte and it's buffer now is always null-terminated. | |||||
* | | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵ | Antoine Pitrou | 2015-05-19 | 1 | -0/+16 | |
|\ \ | |/ | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter. | |||||
| * | Issue #23985: Fix a possible buffer overrun when deleting a slice from the ↵ | Antoine Pitrou | 2015-05-19 | 1 | -0/+16 | |
| | | | | | | | | | | | | front of a bytearray and then appending some other bytes data. Patch by Martin Panter. | |||||
* | | Use assertEqual rather than assertEquals to avoid the deprecation warning. | Gregory P. Smith | 2015-04-26 | 1 | -4/+4 | |
| | | ||||||
* | | Implements issue #9951: Adds a hex() method to bytes, bytearray, & memoryview. | Gregory P. Smith | 2015-04-25 | 1 | -0/+8 | |
| | | | | | | | | | | | | | | Also updates a few internal implementations of the same thing to use the new built-in code. Contributed by Arnon Yaari. | |||||
* | | Issue #23681: The -b option now affects comparisons of bytes with int. | Serhiy Storchaka | 2015-03-20 | 1 | -13/+28 | |
| | | ||||||
* | | Issue #14203: Remove obsolete support for view==NULL in bytesiobuf_getbuffer() | Stefan Krah | 2015-02-03 | 1 | -0/+4 | |
| | | | | | | | | and array_buffer_getbuf(). | |||||
* | | Don't use deprecated assertEquals. | Serhiy Storchaka | 2015-01-26 | 1 | -4/+4 | |
| | | ||||||
* | | Issue20284: Implement PEP461 | Ethan Furman | 2015-01-24 | 1 | -0/+44 | |
| | | ||||||
* | | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -16/+17 | |
|\ \ | |/ | ||||||
| * | Issue #22777: Test pickling with all protocols. | Serhiy Storchaka | 2014-12-15 | 1 | -16/+17 | |
| | | ||||||
* | | Issue #20335: bytes constructor now raises TypeError when encoding or errors | Serhiy Storchaka | 2014-12-02 | 1 | -0/+8 | |
|\ \ | |/ | | | | | is specified with non-string argument. Based on patch by Renaud Blanch. | |||||
| * | Issue #20335: bytes constructor now raises TypeError when encoding or errors | Serhiy Storchaka | 2014-12-02 | 1 | -0/+8 | |
| | | | | | | | | is specified with non-string argument. Based on patch by Renaud Blanch. | |||||
* | | Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵ | Antoine Pitrou | 2014-11-02 | 1 | -0/+13 | |
|\ \ | |/ | | | | | bytes on a 32-bit platform. | |||||
| * | Issue #22335: Fix crash when trying to enlarge a bytearray to 0x7fffffff ↵ | Antoine Pitrou | 2014-11-02 | 1 | -0/+13 | |
| | | | | | | | | bytes on a 32-bit platform. | |||||
* | | merge 3.4 (#22379) | Benjamin Peterson | 2014-09-28 | 1 | -0/+1 | |
|\ \ | |/ | ||||||
| * | check that exception messages are not empty (#22379) | Benjamin Peterson | 2014-09-28 | 1 | -0/+1 | |
| | | | | | | | | Patch by Yongzhi Pan. | |||||
* | | Issue #22077: Improve index error messages for bytearrays, bytes, lists, and | Terry Jan Reedy | 2014-08-02 | 1 | -0/+16 | |
|/ | | | | | tuples by adding 'or slices'. Added ', not <typename' for bytearrays. Original patch by Claudiu Popa. | |||||
* | Fix test_bytes when sys.stdin is None, for example on Windows when using | Victor Stinner | 2014-07-28 | 1 | -1/+1 | |
| | | | | pythonw.exe instead of python.exe | |||||
* | (Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if | Victor Stinner | 2013-12-13 | 1 | -0/+6 | |
|\ | | | | | | | "%c" argument is not in range [0; 255]. | |||||
| * | Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c" | Victor Stinner | 2013-12-13 | 1 | -0/+6 | |
| | | | | | | | | argument is not in range [0; 255]. | |||||
* | | Issue #19087: Improve bytearray allocation in order to allow cheap popping ↵ | Antoine Pitrou | 2013-10-05 | 1 | -0/+9 | |
| | | | | | | | | of data at the front (slice deletion). | |||||
* | | Merge 3.3. | Stefan Krah | 2013-01-26 | 1 | -0/+1 | |
|\ \ | |/ | ||||||
| * | Adapt test_bytes for a build --without-doc-strings. | Stefan Krah | 2013-01-26 | 1 | -0/+1 | |
| | | ||||||
* | | #16910: merge with 3.3. | Ezio Melotti | 2013-01-10 | 1 | -15/+9 | |
|\ \ | |/ | ||||||
| * | #16910: test_bytes, test_unicode, and test_userstring now work with unittest ↵ | Ezio Melotti | 2013-01-10 | 1 | -15/+9 | |
| | | | | | | | | test discovery. Patch by Zachary Ware. | |||||
* | | Use OESeeror instead of os.error (#16720) | Andrew Svetlov | 2012-12-24 | 1 | -1/+1 | |
| | | | | | | | | Patch by Serhiy Storchaka. | |||||
* | | merge 3.3 (#16722) | Benjamin Peterson | 2012-12-19 | 1 | -0/+6 | |
|\ \ | |/ | ||||||
| * | try to call __bytes__ before __index__ (closes #16722) | Benjamin Peterson | 2012-12-19 | 1 | -0/+6 | |
| | | ||||||
| * | #8401: merge with 3.2. | Ezio Melotti | 2012-11-03 | 1 | -0/+18 | |
| |\ | ||||||
* | \ | #8401: merge with 3.3. | Ezio Melotti | 2012-11-03 | 1 | -0/+18 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | #8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now raises an ↵ | Ezio Melotti | 2012-11-03 | 1 | -0/+18 | |
| | | | | | | | | | | | | error. | |||||
* | | | Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. | Antoine Pitrou | 2012-10-16 | 1 | -2/+21 | |
| |/ |/| | ||||||
* | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -0/+18 | |
| | | ||||||
* | | #14081: The sep and maxsplit parameter to str.split, bytes.split, and ↵ | Ezio Melotti | 2012-02-26 | 1 | -0/+16 | |
| | | | | | | | | bytearray.split may now be passed as keyword arguments. | |||||
* | | Issue #13623: Fix a performance regression introduced by issue #12170 in | Victor Stinner | 2011-12-18 | 1 | -0/+5 | |
| | | | | | | | | | | bytes.find() and handle correctly OverflowError (raise the same ValueError than the error for -1). | |||||
* | | Issue #12170: The count(), find(), rfind(), index() and rindex() methods | Antoine Pitrou | 2011-10-20 | 1 | -15/+88 | |
| | | | | | | | | | | of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen. | |||||
* | | Issue #12380: PyArg_ParseTuple now accepts a bytearray for the 'c' format. | Eli Bendersky | 2011-07-29 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | As a side effect, this now allows the rjust, ljust and center methods of bytes and bytearray to accept a bytearray argument. Patch by Petri Lehtinen | |||||
* | | #6780: merge with 3.2. | Ezio Melotti | 2011-04-26 | 1 | -0/+10 | |
|\ \ | |/ | ||||||
| * | #6780: merge with 3.1. | Ezio Melotti | 2011-04-26 | 1 | -0/+10 | |
| |\ |