Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #16975: Fix error handling bug in the escape-decode bytes decoder. | Serhiy Storchaka | 2013-01-25 | 1 | -0/+4 |
|\ | |||||
| * | Issue #16975: Fix error handling bug in the escape-decode bytes decoder. | Serhiy Storchaka | 2013-01-25 | 1 | -0/+4 |
| |\ | |||||
| | * | Issue #16975: Fix error handling bug in the escape-decode bytes decoder. | Serhiy Storchaka | 2013-01-25 | 1 | -0/+4 |
| | | | |||||
| | * | Fix the internals of our hash functions to used unsigned values during hash | Gregory P. Smith | 2012-12-11 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | computation as the overflow behavior of signed integers is undefined. In practice we require compiling everything with -fwrapv which forces overflow to be defined as twos compliment but this keeps the code cleaner for checkers or in the case where someone has compiled it without -fwrapv or their compiler's equivalent. Found by Clang trunk's Undefined Behavior Sanitizer (UBSan). Cleanup only - no functionality or hash values change. | ||||
| | * | merge 3.1 (#14509) | Benjamin Peterson | 2012-04-09 | 1 | -0/+2 |
| | |\ | |||||
| | | * | fix build without Py_DEBUG and DNDEBUG (closes #14509) | Benjamin Peterson | 2012-04-09 | 1 | -0/+2 |
| | | | | |||||
| | * | | merge 3.2 | Benjamin Peterson | 2012-02-21 | 1 | -0/+1 |
| | |\ \ | | | |/ | |||||
| | | * | ensure no one tries to hash things before the random seed is found | Benjamin Peterson | 2012-02-21 | 1 | -0/+1 |
| | | | | |||||
| | * | | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵ | Georg Brandl | 2012-02-20 | 1 | -1/+11 |
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
| | | * | Issue #13703: add a way to randomize the hash values of basic types (str, ↵ | Georg Brandl | 2012-02-20 | 1 | -1/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | ||||
* | | | | merge 3.3 (#16722) | Benjamin Peterson | 2012-12-19 | 1 | -5/+28 |
|\ \ \ \ | |/ / / | |||||
| * | | | try to call __bytes__ before __index__ (closes #16722) | Benjamin Peterson | 2012-12-19 | 1 | -5/+28 |
| | | | | |||||
* | | | | Issue #16495: remove extraneous NULL encoding check from bytes_decode(). | Chris Jerdonek | 2012-12-07 | 1 | -2/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | The NULL encoding check in bytes_decode() was unnecessary because this case is already taken care of by the call to _Py_normalize_encoding() inside PyUnicode_Decode(). | ||||
* | | | | Issue #15958: bytes.join and bytearray.join now accept arbitrary buffer objects. | Antoine Pitrou | 2012-10-16 | 1 | -91/+16 |
| | | | | |||||
* | | | | Issue #16148: implemented PEP 424 | Armin Ronacher | 2012-10-06 | 1 | -1/+1 |
|/ / / | |||||
* | | | Issue #12834: Fix PyBuffer_ToContiguous() for non-contiguous arrays. | Stefan Krah | 2012-07-28 | 1 | -1/+0 |
| | | | |||||
* | | | Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns. | Larry Hastings | 2012-05-25 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | Previously, if you passed in a bytes object, it would create a whole new object. | ||||
* | | | Simplify and optimize formatlong() | Victor Stinner | 2012-04-27 | 1 | -143/+0 |
| | | | | | | | | | | | | | | | | | | | | | * Remove _PyBytes_FormatLong(): inline it into formatlong() * the input type is always a long, so remove the code for bool * don't duplicate the string if the length does not change * Use PyUnicode_DATA() instead of _PyUnicode_AsString() | ||||
* | | | Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) | Victor Stinner | 2012-04-27 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError() | ||||
* | | | Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in ↵ | Antoine Pitrou | 2012-04-04 | 1 | -2/+2 |
| | | | | | | | | | | | | the stable ABI. | ||||
* | | | Issue #14288: Serialization support for builtin iterators. | Kristján Valur Jónsson | 2012-04-03 | 1 | -0/+34 |
| | | | |||||
* | | | #14081: The sep and maxsplit parameter to str.split, bytes.split, and ↵ | Ezio Melotti | 2012-02-26 | 1 | -8/+12 |
| | | | | | | | | | | | | bytearray.split may now be passed as keyword arguments. | ||||
* | | | merge with 3.2 | Georg Brandl | 2012-01-22 | 1 | -1/+1 |
|\ \ \ | |/ / | |||||
| * | | Fix #13834: strip() strips leading and trailing whitespace. | Georg Brandl | 2012-01-22 | 1 | -1/+1 |
| | | | |||||
| * | | Consolidate the occurrances of the prime used as the multiplier when hashing | Gregory P. Smith | 2012-01-14 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | to a single #define instead of having several copies in several files. This excludes the Modules/ tree (datetime and expat both have a copy for their own purposes with no need for it to be the same). | ||||
* | | | Issue #11231: Fix bytes and bytearray docstrings | Victor Stinner | 2011-12-17 | 1 | -3/+4 |
|\ \ \ | |/ / | | | | | | | Patch written by Brice Berna. | ||||
| * | | Issue #11231: Fix bytes and bytearray docstrings | Victor Stinner | 2011-12-17 | 1 | -3/+4 |
| | | | | | | | | | | | | Patch written by Brice Berna. | ||||
* | | | Issue #13411: memoryview objects are now hashable when the underlying object ↵ | Antoine Pitrou | 2011-11-21 | 1 | -16/+5 |
| | | | | | | | | | | | | is hashable. | ||||
* | | | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 1 | -1/+1 |
| | | | | | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | | | Issue #12170: The count(), find(), rfind(), index() and rindex() methods | Antoine Pitrou | 2011-10-20 | 1 | -18/+44 |
| | | | | | | | | | | | | | | | of bytes and bytearray objects now accept an integer between 0 and 255 as their first argument. Patch by Petri Lehtinen. | ||||
* | | | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 | Victor Stinner | 2011-10-14 | 1 | -3/+2 |
| | | | |||||
* | | | Fix hex_digit_to_int() prototype: expect Py_UCS4, not Py_UNICODE | Victor Stinner | 2011-09-29 | 1 | -2/+2 |
| | | | |||||
* | | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -64/+63 |
| | | | |||||
* | | | Issue #1621: Fix undefined behaviour in bytes.__hash__, str.__hash__, ↵ | Mark Dickinson | 2011-09-24 | 1 | -4/+4 |
| | | | | | | | | | | | | tuple.__hash__, frozenset.__hash__ and set indexing operations. | ||||
* | | | Issue #13012: Allow 'keepends' to be passed as a keyword argument in ↵ | Mark Dickinson | 2011-09-24 | 1 | -3/+5 |
| | | | | | | | | | | | | str.splitlines, bytes.splitlines and bytearray.splitlines. | ||||
* | | | merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind ↵ | Senthil Kumaran | 2011-07-27 | 1 | -2/+2 |
|\ \ \ | |/ / | | | | | | | methods of bytes/bytearry/unicodeobject. | ||||
| * | | Fix closes Issue12621 - Fix docstrings of find and rfind methods of ↵ | Senthil Kumaran | 2011-07-27 | 1 | -2/+2 |
| | | | | | | | | | | | | bytes/bytearry/unicodeobject. | ||||
* | | | #6780: merge with 3.2. | Ezio Melotti | 2011-04-26 | 1 | -2/+10 |
|\ \ \ | |/ / | |||||
| * | | #6780: merge with 3.1. | Ezio Melotti | 2011-04-26 | 1 | -2/+10 |
| |\ \ | | |/ | |||||
| | * | #6780: fix starts/endswith error message to mention that tuples are accepted ↵ | Ezio Melotti | 2011-04-26 | 1 | -2/+10 |
| | | | | | | | | | | | | too. | ||||
* | | | MERGE: startswith and endswith don't accept None as slice index. Patch by ↵ | Jesus Cea | 2011-04-20 | 1 | -18/+5 |
|\ \ \ | |/ / | | | | | | | Torsten Becker. (closes #11828) | ||||
| * | | MERGE: startswith and endswith don't accept None as slice index. Patch by ↵ | Jesus Cea | 2011-04-20 | 1 | -18/+5 |
| |\ \ | | |/ | | | | | | | Torsten Becker. (closes #11828) | ||||
| | * | startswith and endswith don't accept None as slice index. Patch by Torsten ↵ | Jesus Cea | 2011-04-20 | 1 | -18/+5 |
| | | | | | | | | | | | | Becker. (closes #11828) | ||||
* | | | Issue #11634: Remove misleading paragraph from a comment | Eli Bendersky | 2011-03-24 | 1 | -6/+2 |
|/ / | |||||
* | | #11515: Merge with 3.1. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #11515: fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
| | | |||||
| * | Merged revisions 84629 via svnmerge from | Senthil Kumaran | 2010-09-08 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84629 | senthil.kumaran | 2010-09-08 18:20:29 +0530 (Wed, 08 Sep 2010) | 3 lines Revert the doc change done in r83880. str.replace with negative count value is not a feature. ........ | ||||
| * | Merged revisions 84070,84074 via svnmerge from | Antoine Pitrou | 2010-08-15 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84070 | antoine.pitrou | 2010-08-15 19:12:55 +0200 (dim., 15 août 2010) | 5 lines Fix some compilation warnings under 64-bit Windows (issue #9566). Some of these are genuine bugs with objects bigger than 2GB, but my system doesn't allow me to write tests for it. ........ r84074 | antoine.pitrou | 2010-08-15 19:41:31 +0200 (dim., 15 août 2010) | 3 lines Fix (harmless) warning with MSVC. ........ | ||||
| * | Merged revisions 83882 via svnmerge from | Senthil Kumaran | 2010-08-09 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83882 | senthil.kumaran | 2010-08-09 14:33:57 +0530 (Mon, 09 Aug 2010) | 3 lines spelling mistake. ........ | ||||
| * | Merged revisions 83880 via svnmerge from | Senthil Kumaran | 2010-08-09 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83880 | senthil.kumaran | 2010-08-09 14:26:25 +0530 (Mon, 09 Aug 2010) | 3 lines Fix Issue5416 - explain negative value for count in bytes object replace. ........ |