summaryrefslogtreecommitdiffstats
path: root/Objects
Commit message (Collapse)AuthorAgeFilesLines
* Issue #21233: Revert bytearray(int) optimization using calloc()Victor Stinner2014-06-021-14/+2
|
* Issue #21233: Rename the C structure "PyMemAllocator" to "PyMemAllocatorEx" toVictor Stinner2014-06-021-7/+7
| | | | | make sure that the code using it will be adapted for the new "calloc" field (instead of crashing).
* Initialize base types before child typesVictor Stinner2014-06-021-6/+6
| | | | | object (PyBaseObject_Type) is the base type of type (PyType_Type), int (PyLong_Type) is the base type of bool (PyBool_Type).
* Add development comments to setobject.cRaymond Hettinger2014-05-181-8/+15
|
* Issue #20186: memoryobject.c: add function signatures.Stefan Krah2014-05-171-5/+6
|
* Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()Victor Stinner2014-05-142-42/+38
| | | | | Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
* (Merge 3.4) Issue #21418: Fix a crash in the builtin function super() whenVictor Stinner2014-05-121-2/+9
|\ | | | | | | called without argument and without current frame (ex: embedded Python).
| * Issue #21418: Fix a crash in the builtin function super() when called withoutVictor Stinner2014-05-121-2/+9
| | | | | | | | argument and without current frame (ex: embedded Python).
* | Issue #21442: Fix MSVC compiler warning introduced by issue21377.Zachary Ware2014-05-061-1/+1
| |
* | Issue #21233: Fix _PyObject_Alloc() when compiled with WITH_VALGRIND definedVictor Stinner2014-05-061-3/+3
| |
* | Issue 21101: Internal API for dict getitem and setitem where the hash value ↵Raymond Hettinger2014-05-031-0/+56
| | | | | | | | is known.
* | Issue #21233: Oops, Fix _PyObject_Alloc(): initialize nbytes before going toVictor Stinner2014-05-021-3/+3
| | | | | | | | redirect.
* | Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),Victor Stinner2014-05-023-45/+167
| | | | | | | | | | | | 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 Pitrou2014-05-011-4/+39
| | | | | | | | | | | | first argument has a reference count of 1. Patch by Nikolaus Rath.
* | sprinkle some _PyId goodness around moduleobject.cBenjamin Peterson2014-04-241-9/+19
| |
* | do not override errors from descriptors on modulesBenjamin Peterson2014-04-241-10/+9
| |
* | Issue8297: module attribute lookup failures now include module name in error ↵Ethan Furman2014-04-241-2/+26
| | | | | | | | message.
* | Merge typo fix from 3.4Zachary Ware2014-04-181-1/+1
|\ \ | |/
| * Fix a typo in the docstring of nb_index.Zachary Ware2014-04-181-1/+1
| |
* | Merge typo fix from 3.4Zachary Ware2014-04-181-1/+1
|\ \ | |/
| * Fix a typo in the signature for object.__ge__Zachary Ware2014-04-181-1/+1
| |
| * Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing formatVictor Stinner2014-04-041-1/+1
| | | | | | | | character for the "end" parameter
* | Issue #21193: Make (e.g.,) pow(2, -3, 5) raise ValueError rather than ↵Mark Dickinson2014-04-111-1/+1
| | | | | | | | TypeError. Patch by Josh Rosenberg.
* | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-103-0/+26
| |
* | Issue #21118: PyLong_AS_LONG() result type is longVictor Stinner2014-04-081-1/+1
| | | | | | | | Even if PyLong_AS_LONG() cannot fail, I prefer to use the right type.
* | fix reference leaks in the translate fast path (closes #21175)Benjamin Peterson2014-04-081-14/+8
| | | | | | | | Patch by Josh Rosenberg.
* | Issue #21118: Optimize also str.translate() for ASCII => ASCII deletionVictor Stinner2014-04-051-19/+29
| |
* | Issue #21118: Add unit test for invalid character replacement (code point ↵Victor Stinner2014-04-051-10/+10
| | | | | | | | higher than U+10ffff)
* | Issue #21118: Optimize str.translate() for ASCII => ASCII translationVictor Stinner2014-04-051-1/+120
| |
* | Issue #21118: Remove unused variableVictor Stinner2014-04-041-1/+0
| |
* | Issue #21118: Use _PyUnicodeWriter API in str.translate() to simplify andVictor Stinner2014-04-041-171/+95
| | | | | | | | factorize the code
* | Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing formatVictor Stinner2014-04-041-1/+1
| | | | | | | | character for the "end" parameter
* | merge 3.4 (#21134)Benjamin Peterson2014-04-021-0/+12
|\ \ | |/
| * bail in unicode error's __str__ methods if the objects are not properly ↵Benjamin Peterson2014-04-021-0/+12
| | | | | | | | initialized (closes #21134)
* | Issue #21073: explain why Py_ReprEnter() allows for a missing thread state.Antoine Pitrou2014-03-311-0/+2
|\ \ | |/
| * Issue #21073: explain why Py_ReprEnter() allows for a missing thread state.Antoine Pitrou2014-03-311-0/+2
| |
* | merge 3.4Benjamin Peterson2014-03-301-19/+19
|\ \ | |/
| * merge 3.3Benjamin Peterson2014-03-301-19/+19
| |\
| | * merge 3.2Benjamin Peterson2014-03-301-19/+19
| | |\
| | | * fix expandtabs overflow detection to be consistent and not rely on signed ↵Benjamin Peterson2014-03-301-19/+19
| | | | | | | | | | | | | | | | overflow
| | | * #17296: backport fix for issue 1692335, naive exception pickling.R David Murray2013-02-271-1/+10
| | | |
* | | | Issue19995: more informative error message; spelling corrections; use ↵Ethan Furman2014-03-211-5/+20
| | | | | | | | | | | | | | | | operator.mod instead of __mod__
* | | | Issue19995: passing a non-int to %o, %c, %x, or %X now raises an exceptionEthan Furman2014-03-191-26/+2
| | | |
* | | | Issue #20574: Implement incremental decoder for cp65001 codeVictor Stinner2014-03-171-32/+9
|/ / / | | | | | | | | | (Windows code page 65001, Microsoft UTF-8).
* | | correct the fix for #20637; allow slot descriptor inheritance to take place ↵Benjamin Peterson2014-03-171-9/+8
| | | | | | | | | | | | before creating cached keys
* | | merge 3.3Benjamin Peterson2014-03-151-1/+1
|\ \ \ | |/ /
| * | avoid referencing past the bounds of an arrayBenjamin Peterson2014-03-151-1/+1
| | |
* | | merge 3.3Benjamin Peterson2014-03-152-2/+3
|\ \ \ | |/ /
| * | avoid referencing out-of-bounds memoryBenjamin Peterson2014-03-151-1/+1
| | |
| * | fix c89 declaration orderBenjamin Peterson2014-03-151-1/+2
| | |