summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18408: Fix PyCode_Optimize(): raise a MemoryError on memory allocationVictor Stinner2013-07-081-2/+6
| | | | failure.
* Issue #18408: Fix zlib.compressobj() to handle PyThread_allocate_lock() failureVictor Stinner2013-07-081-0/+4
| | | | (MemoryError).
* Issue #18408: Fix ConvParam() of the ctypes module to handle paramfunc failureVictor Stinner2013-07-081-0/+2
| | | | (MemoryError).
* Avoid spurious non-fatal install errors for OS X frameworks:Ned Deily2013-07-081-1/+1
| | | | | for a framework install, the python shared library is installed in the frameworkinstallstructure target, not in altbininstall.
* Issue #18408: Fix _PyUnicodeWriter_Finish(): clear writer->buffer,Victor Stinner2013-07-081-2/+5
| | | | so _PyUnicodeWriter_Dealloc() can be called on the writer after finish.
* fix indentationVictor Stinner2013-07-081-13/+13
|
* Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failureVictor Stinner2013-07-081-4/+9
| | | | (in load_args()), ex: MemoryError.
* Issue #18408: Fix PyType_Ready() and type.__bases__ setter to handleVictor Stinner2013-07-081-0/+2
| | | | PyWeakref_NewRef() failure (ex: MemoryError).
* Issue #18408: Fix marshal reader for Unicode strings: handleVictor Stinner2013-07-081-0/+4
| | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError).
* Issue #18408: Fix list.pop() to handle list_resize() failure (MemoryError).Victor Stinner2013-07-081-2/+4
|
* Issue #18408: Fix PyDict_New() to handle correctly new_keys_object() failureVictor Stinner2013-07-081-1/+5
| | | | (MemoryError).
* Issue #18408: PyObject_GC_NewVar() now raises SystemError exception if nitemsVictor Stinner2013-07-081-2/+9
| | | | is negative
* gcmodule.c: strip trailing spacesVictor Stinner2013-07-081-7/+7
|
* #18403: merge with 3.3.Ezio Melotti2013-07-081-1/+1
|\
| * #18403: fix an off-by-one typo noticed by Xue Fuqiao.Ezio Melotti2013-07-081-1/+1
| |
* | Merge str.center tests from 3.3.Ezio Melotti2013-07-081-0/+9
|\ \ | |/
| * Add a couple of tests for str.center with non-ASCII chars.Ezio Melotti2013-07-081-0/+9
| |
* | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup()Victor Stinner2013-07-078-29/+64
| | | | | | | | | | Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the GIL is held or not.
* | Issue #18203: Fix _Py_DecodeUTF8_surrogateescape(), use PyMem_RawMalloc() as ↵Victor Stinner2013-07-071-2/+2
| | | | | | | | _Py_char2wchar()
* | Issue #18227: pyexpat now uses a static XML_Memory_Handling_Suite. ↵Christian Heimes2013-07-071-6/+6
| | | | | | | | cElementTree uses the same approach since at least Python 2.6
* | Issue #18203: Replace malloc() with PyMem_Malloc() in ↵Victor Stinner2013-07-071-8/+11
| | | | | | | | _PySequence_BytesToCharpArray()
* | Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objectsVictor Stinner2013-07-071-6/+6
| |
* | Issue #18203: Replace malloc() with PyMem_RawMalloc() to allocate thread locksVictor Stinner2013-07-072-10/+10
| |
* | Issue #18227: "Free" function of bz2, lzma and zlib modules has no return ↵Victor Stinner2013-07-073-3/+3
| | | | | | | | value (void)
* | Issue #18203: Replace malloc() with PyMem_Malloc() in _ssl for the passwordVictor Stinner2013-07-071-4/+4
| |
* | Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modulesVictor Stinner2013-07-073-8/+77
| |
* | Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as ↵Victor Stinner2013-07-071-1/+1
| | | | | | | | _Py_char2wchar()
* | Fix a compiler warning in posix_sendfile() on FreeBSD:Victor Stinner2013-07-071-2/+3
| | | | | | | | | | Modules/posixmodule.c: In function 'posix_sendfile': Modules/posixmodule.c:7700: warning: ISO C90 forbids mixed declarations and code
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-0710-55/+52
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initializationVictor Stinner2013-07-078-76/+76
| | | | | | | | | | | | | | * Replace malloc() with PyMem_RawMalloc() * Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held. * _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead of PyMem_Malloc()
* | Issue #18203: Fix Py_Finalize(): destroy the GIL after the last call toVictor Stinner2013-07-071-9/+9
| | | | | | | | | | | | | | PyMem_Malloc() or PyObject_Malloc(). For example, PyCFunction_Fini() calls PyObject_GC_Del() which calls PyObject_FREE().
* | Fix #ifdefRaymond Hettinger2013-07-071-1/+1
| |
* | Use macros for marking and checking endpoints in the doubly-linked list of ↵Raymond Hettinger2013-07-071-47/+81
| | | | | | | | | | | | | | | | | | | | blocks. * Add comment explaining the endpoint checks * Only do the checks in a debug build * Simplify newblock() to only require a length argument and leave the link updates to the calling code. * Also add comment for the freelisting logic.
* | #18106: refactor tests to use subtests and proper assert methods. Patch by ↵Ezio Melotti2013-07-071-35/+42
| | | | | | | | Vajrasky Kok.
* | #17198: merge with 3.3.Ezio Melotti2013-07-073-2/+24
|\ \ | |/
| * #17198: Fix a NameError in the dbm module. Patch by Valentina Mukhamedzhanova.Ezio Melotti2013-07-073-2/+24
| |
* | Merge #18013: Fix cgi.FieldStorage to parse the W3C sample form.Florent Xicluna2013-07-073-1/+49
|\ \ | |/
| * Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.Florent Xicluna2013-07-073-1/+49
| |
* | #18020: improve html.escape speed by an order of magnitude. Patch by Matt ↵Ezio Melotti2013-07-073-7/+10
| | | | | | | | Bryant.
* | (3.3->default) Issue #18377: Code cleanup in Python LauncherRonald Oussoren2013-07-078-95/+77
|\ \ | |/ | | | | | | This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources.
| * Issue #18377: Code cleanup in Python LauncherRonald Oussoren2013-07-078-95/+77
| | | | | | | | | | This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources.
* | (3.3->default) Cleanup of documentation change from #17860Ronald Oussoren2013-07-072-4/+10
|\ \ | |/ | | | | Reformulated the textual change, and applied it to the docstring as well.
| * Cleanup of documentation change from #17860Ronald Oussoren2013-07-072-4/+10
| | | | | | | | Reformulated the textual change, and applied it to the docstring as well.
* | mergeRaymond Hettinger2013-07-079-239/+802
|\ \
| * | Issue #3329: Fix _PyObject_ArenaVirtualFree()Victor Stinner2013-07-071-1/+1
| | | | | | | | | | | | | | | According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE.
| * | Issue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fixVictor Stinner2013-07-072-1/+5
| | | | | | | | | | | | | | | a stack overflow in the marshal module (fix a crash in test_marshal). Patch written by Jeremy Kloth.
| * | Issue #3329: Implement the PEP 445Victor Stinner2013-07-078-238/+797
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new enum: * PyMemAllocatorDomain Add new structures: * PyMemAllocator * PyObjectArenaAllocator Add new functions: * PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree() * PyMem_GetAllocator(), PyMem_SetAllocator() * PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator() * PyMem_SetupDebugHooks() Changes: * PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead of calling PyObject_Malloc()/PyObject_Realloc() in debug mode. * PyObject_Malloc()/PyObject_Realloc() now falls back to PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes. * Redesign debug checks on memory block allocators as hooks, instead of using C macros
* | | Improve variable names in deque_count()Raymond Hettinger2013-07-071-8/+8
|/ /
* | Apply the PyObject_VAR_HEAD and Py_SIZE macrosRaymond Hettinger2013-07-061-40/+39
| | | | | | | | to be consistent with practices in other modules.
* | mergeBrett Cannon2013-07-061-6/+6
|\ \