Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Optimize PyBytes_FromObject(): only overallocate when size=0 to not get the | Victor Stinner | 2014-08-17 | 1 | -1/+3 | |
| | | | | | | | | | | | | empty string singleton | |||||
* | | | Issue #22077: Improve index error messages for bytearrays, bytes, lists, and | Terry Jan Reedy | 2014-08-02 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | tuples by adding 'or slices'. Added ', not <typename' for bytearrays. Original patch by Claudiu Popa. | |||||
* | | | Rerun AC, silence pointer conversion warnings. | Martin v. Löwis | 2014-07-27 | 1 | -71/+100 | |
| | | | ||||||
* | | | Issue #20179: Apply Argument Clinic to bytes and bytearray. | Martin v. Löwis | 2014-07-27 | 1 | -230/+716 | |
| | | | | | | | | | | | | Patch by Tal Einat. | |||||
* | | | Issue #21442: Fix MSVC compiler warning introduced by issue21377. | Zachary Ware | 2014-05-06 | 1 | -1/+1 | |
| | | | ||||||
* | | | Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(), | Victor Stinner | 2014-05-02 | 1 | -26/+44 | |
| | | | | | | | | | | | | | | | | | | PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now using ``calloc()`` instead of ``malloc()`` for large objects which is faster and use less memory (until the bytearray buffer is filled with data). | |||||
* | | | Issue #21377: PyBytes_Concat() now tries to concatenate in-place when the ↵ | Antoine Pitrou | 2014-05-01 | 1 | -4/+39 | |
|/ / | | | | | | | | | | | first argument has a reference count of 1. Patch by Nikolaus Rath. | |||||
* | | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -3/+7 | |
|\ \ | |/ | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | |||||
| * | Make the various iterators' "setstate" sliently and consistently clip the | Kristján Valur Jónsson | 2014-03-05 | 1 | -3/+7 | |
| | | | | | | | | | | index. This avoids the possibility of setting an iterator to an invalid state. | |||||
* | | (Merge 3.3) Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if | Victor Stinner | 2013-12-13 | 1 | -3/+16 | |
|\ \ | |/ | | | | | "%c" argument is not in range [0; 255]. | |||||
| * | Issue #19969: PyBytes_FromFormatV() now raises an OverflowError if "%c" | Victor Stinner | 2013-12-13 | 1 | -3/+16 | |
| | | | | | | | | argument is not in range [0; 255]. | |||||
* | | Silence expression result unused warnings with clang. | Christian Heimes | 2013-12-04 | 1 | -3/+3 | |
| | | | | | | | | | | | | | | | | | | | | | | | | The PyObject_INIT() macros returns obj: ../cpython/Objects/methodobject.c:32:23: warning: expression result unused [-Wunused-value] PyObject_INIT(op, &PyCFunction_Type); ^~ ../cpython/Include/objimpl.h:139:69: note: expanded from macro 'PyObject_INIT' ( Py_TYPE(op) = (typeobj), _Py_NewReference((PyObject *)(op)), (op) ) ^ 1 warning generated. | |||||
* | | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. | Christian Heimes | 2013-11-20 | 1 | -1/+1 | |
| | | | | | | | | Python now uses SipHash24 on all major platforms. | |||||
* | | #17806: Added keyword-argument support for "tabsize" to str/bytes.expandtabs(). | Ezio Melotti | 2013-11-16 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #16286: optimize PyUnicode_RichCompare() for identical strings (same | Victor Stinner | 2013-11-04 | 1 | -7/+16 | |
| | | | | | | | | | | | | pointer) for any operator, not only Py_EQ and Py_NE. Code of bytes_richcompare() and PyUnicode_RichCompare() is now closer. | |||||
* | | Issue #16286: write a new subfunction bytes_compare_eq() | Victor Stinner | 2013-11-04 | 1 | -37/+47 | |
| | | | | | | | | | | * cleanup bytes_richcompare() * PyUnicode_RichCompare(): replace a test with a XOR | |||||
* | | Issue #18408: Fix error handling in PyBytes_FromObject() | Victor Stinner | 2013-10-29 | 1 | -2/+1 | |
| | | | | | | | | _PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL. | |||||
* | | Issue #1772673: The type of `char*` arguments now changed to `const char*`. | Serhiy Storchaka | 2013-10-19 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 1 | -22/+22 | |
| | | ||||||
* | | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError | Serhiy Storchaka | 2013-02-10 | 1 | -2/+3 | |
|\ \ | |/ | | | | | and a full traceback including line number. | |||||
| * | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError | Serhiy Storchaka | 2013-02-10 | 1 | -2/+3 | |
| |\ | | | | | | | | | | and a full traceback including line number. | |||||
| | * | Issue #12983: Bytes literals with invalid \x escape now raise a SyntaxError | Serhiy Storchaka | 2013-02-10 | 1 | -2/+3 | |
| | | | | | | | | | | | | and a full traceback including line number. | |||||
* | | | Issue #17034: Use Py_CLEAR() in bytesobject.c. | Serhiy Storchaka | 2013-02-02 | 1 | -8/+4 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #17034: Use Py_CLEAR() in bytesobject.c. | Serhiy Storchaka | 2013-02-02 | 1 | -8/+4 | |
| |\ \ | | |/ | ||||||
| | * | Issue #17034: Use Py_CLEAR() in bytesobject.c. | Serhiy Storchaka | 2013-02-02 | 1 | -8/+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 | |
| |\ \ | | |/ | ||||||
| | * | 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). |